mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-07-03 16:12:38 +00:00
ignore some white space on ssh private key
This commit is contained in:
parent
e8b2551eb9
commit
0a2ba9bf15
|
@ -7,6 +7,7 @@ import (
|
|||
"log"
|
||||
"path"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user