From 6d51c5bf558ff5a560a4da203db3dce25aee59d8 Mon Sep 17 00:00:00 2001 From: Grant Gongaware Date: Thu, 19 Jul 2018 09:53:00 -0700 Subject: [PATCH] suppress ci_wait change to default for backward compatibility --- 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 864c241..dfc7acd 100644 --- a/proxmox/resource_vm_qemu.go +++ b/proxmox/resource_vm_qemu.go @@ -161,6 +161,12 @@ func resourceVmQemu() *schema.Resource { Type: schema.TypeInt, Optional: true, Default: 30, + DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { + if old == "" { + return true // old empty ok + } + return strings.TrimSpace(old) == strings.TrimSpace(new) + }, }, "ciuser": { Type: schema.TypeString,