From c2eed29132e381040ee15f0cfde13849f9b0020c Mon Sep 17 00:00:00 2001 From: Grant Gongaware Date: Mon, 1 May 2017 14:13:58 -0700 Subject: [PATCH] suppress more whitespace --- proxmox/resource_vm_qemu.go | 6 ++++++ 1 file changed, 6 insertions(+) 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,