Skip to content

Commit

Permalink
Fixed deprecated cloud-init parameter (#108)
Browse files Browse the repository at this point in the history
Cloud-init parameter ssh-authorized-keys is deprecated since version 18.3.
Replaced with ssh_authorized_keys
  • Loading branch information
nnoethling authored May 29, 2024
1 parent 71b521a commit 743499d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func (d *NutanixDriver) Create() error {
rancherNode := &yaml.Node{Kind: yaml.MappingNode, Tag: "!!map"}
rancherNode.Content = append(rancherNode.Content, buildStringNodes("name", "root", "")...)
rancherNode.Content = append(rancherNode.Content, buildStringNodes("sudo", "ALL=(ALL) NOPASSWD:ALL", "")...)
rancherNode.Content = append(rancherNode.Content, buildScalarNodes("ssh-authorized-keys")...)
rancherNode.Content = append(rancherNode.Content, buildScalarNodes("ssh_authorized_keys")...)

sshSeqNode := &yaml.Node{Kind: yaml.SequenceNode, Tag: "!!seq"}
sshSeqNode.Content = append(sshSeqNode.Content, buildScalarNodes(string(pubKey))...)
Expand Down

0 comments on commit 743499d

Please sign in to comment.