diff --git a/proxmox/resource_vm_qemu.go b/proxmox/resource_vm_qemu.go index 792d5e8..541e3fd 100644 --- a/proxmox/resource_vm_qemu.go +++ b/proxmox/resource_vm_qemu.go @@ -27,6 +27,9 @@ func resourceVmQemu() *schema.Resource { "desc": { Type: schema.TypeString, Optional: true, + DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { + return strings.TrimSpace(old) == strings.TrimSpace(new) + }, }, "target_node": { Type: schema.TypeString, @@ -90,6 +93,9 @@ func resourceVmQemu() *schema.Resource { Type: schema.TypeString, Optional: true, ForceNew: true, + DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { + return strings.TrimSpace(old) == strings.TrimSpace(new) + }, }, "ssh_user": { Type: schema.TypeString,