Skip to content

Commit

Permalink
Merge pull request Telmate#144 from alterway/macaddr_computed
Browse files Browse the repository at this point in the history
Rollback to computed mac address
  • Loading branch information
ggongaware committed Mar 3, 2020
2 parents b17db9b + c628720 commit 94efbf5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,7 @@ func resourceVmQemu() *schema.Resource {
// TODO: Find a way to set MAC address in .tf config.
Type: schema.TypeString,
Optional: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
if new == "" {
return true // macaddr auto-generates and its ok
}
return strings.TrimSpace(old) == strings.TrimSpace(new)
},
Computed: true,
},
"bridge": &schema.Schema{
Type: schema.TypeString,
Expand Down

0 comments on commit 94efbf5

Please sign in to comment.