We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0dd36bc + 95f4d6e commit 65e20e8Copy full SHA for 65e20e8
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