We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dd36bc commit 95f4d6eCopy full SHA for 95f4d6e
scaleway/resource_ssh_key.go
@@ -67,7 +67,7 @@ func resourceScalewaySSHKeyCreate(d *schema.ResourceData, m interface{}) error {
67
68
user, err = scaleway.PatchUserSSHKey(user.ID, api.UserPatchSSHKeyDefinition{
69
SSHPublicKeys: append(keys, api.KeyDefinition{
70
- Key: d.Get("key").(string),
+ Key: strings.TrimSpace(d.Get("key").(string)),
71
}),
72
})
73
0 commit comments