From a87f8a247148487d19d3c80f2874c1b78dec262a Mon Sep 17 00:00:00 2001 From: Noah Noethling <99181464+nnoethling@users.noreply.github.com> Date: Wed, 29 May 2024 12:58:37 +0200 Subject: [PATCH] Fixed deprecated cloud-init parameter Cloud-init parameter ssh-authorized-keys is deprecated since version 18.3. Replaced with ssh_authorized_keys --- machine/driver/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machine/driver/driver.go b/machine/driver/driver.go index 04fddb3..a8b1250 100755 --- a/machine/driver/driver.go +++ b/machine/driver/driver.go @@ -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))...)