diff --git a/proxmox/resource_vm_qemu.go b/proxmox/resource_vm_qemu.go index 978f1b1..cbdf41a 100644 --- a/proxmox/resource_vm_qemu.go +++ b/proxmox/resource_vm_qemu.go @@ -91,7 +91,13 @@ func resourceVmQemu() *schema.Resource { "macaddr": &schema.Schema{ // TODO: Find a way to set MAC address in .tf config. Type: schema.TypeString, - Computed: true, + 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) + }, }, "bridge": &schema.Schema{ Type: schema.TypeString,