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": {
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,