Skip to content

Commit

Permalink
ignore some white space on ssh private key
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant Gongaware committed Mar 6, 2017
1 parent e8b2551 commit 0a2ba9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"log"
"path"
"strconv"
"strings"
"time"
)

Expand Down Expand Up @@ -98,8 +99,10 @@ func resourceVmQemu() *schema.Resource {
"ssh_private_key": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Sensitive: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return strings.TrimSpace(old) == strings.TrimSpace(new)
},
},
"force_create": {
Type: schema.TypeBool,
Expand Down

0 comments on commit 0a2ba9b

Please sign in to comment.