Skip to content

Commit

Permalink
chore: cleanup and fix linter errors (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpg authored Apr 5, 2023
1 parent ed3dfea commit 2fa9229
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 21 deletions.
10 changes: 0 additions & 10 deletions .github/auto-label.yaml

This file was deleted.

12 changes: 7 additions & 5 deletions example/resource_virtual_environment_vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@ resource "proxmox_virtual_environment_vm" "example" {
]
}

initialization {
dns {
server = "8.8.8.8"
}
}
# While overwriting the initialization block when cloning a template is possible, it is not recommended.
# This will cause the coned VM to be reinitialized each time on re-apply.
# initialization {
# dns {
# server = "8.8.8.8"
# }
# }

}

Expand Down
6 changes: 0 additions & 6 deletions proxmoxtf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

package proxmoxtf

import (
Expand Down
2 changes: 2 additions & 0 deletions proxmoxtf/resource/firewall/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ func mapToBaseRule(rule map[string]interface{}) *firewall.BaseRule {

return baseRule
}

func mapToSecurityGroupBaseRule(rule map[string]interface{}) *firewall.BaseRule {
baseRule := &firewall.BaseRule{}

Expand Down Expand Up @@ -440,6 +441,7 @@ func baseRuleToMap(baseRule *firewall.BaseRule, rule map[string]interface{}) {
rule[mkRuleSPort] = *baseRule.SPort
}
}

func securityGroupBaseRuleToMap(baseRule *firewall.BaseRule, rule map[string]interface{}) {
if baseRule.Comment != nil {
rule[mkRuleComment] = *baseRule.Comment
Expand Down
1 change: 1 addition & 0 deletions proxmoxtf/resource/validator/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func FirewallRate() schema.SchemaValidateDiagFunc {
"Must be a valid rate expression, e.g. '1/second'",
))
}

func FirewallIFace() schema.SchemaValidateDiagFunc {
return validation.ToDiagFunc(validation.StringMatch(
ifaceExpression,
Expand Down

0 comments on commit 2fa9229

Please sign in to comment.