Skip to content

Commit

Permalink
suppress more whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant Gongaware committed May 1, 2017
1 parent 06bdf45 commit c2eed29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c2eed29

Please sign in to comment.