suppress more whitespace

This commit is contained in:
Grant Gongaware 2017-05-01 14:13:58 -07:00
parent 06bdf455b9
commit c2eed29132

View File

@ -27,6 +27,9 @@ func resourceVmQemu() *schema.Resource {
"desc": { "desc": {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return strings.TrimSpace(old) == strings.TrimSpace(new)
},
}, },
"target_node": { "target_node": {
Type: schema.TypeString, Type: schema.TypeString,
@ -90,6 +93,9 @@ func resourceVmQemu() *schema.Resource {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
ForceNew: true, ForceNew: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return strings.TrimSpace(old) == strings.TrimSpace(new)
},
}, },
"ssh_user": { "ssh_user": {
Type: schema.TypeString, Type: schema.TypeString,