Skip to content

Commit

Permalink
fix(vm): panic if initialization.user_account_keys contains null (#…
Browse files Browse the repository at this point in the history
…1197)

Signed-off-by: Pavel Boldyrev <[email protected]>
  • Loading branch information
bpg authored Apr 9, 2024
1 parent c273111 commit b4174a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proxmoxtf/resource/vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,9 @@ func vmGetCloudInitConfig(d *schema.ResourceData) *vms.CustomCloudInitConfig {
sshKeys := make(vms.CustomCloudInitSSHKeys, len(keys))

for i, k := range keys {
sshKeys[i] = k.(string)
if k != nil {
sshKeys[i] = k.(string)
}
}

initializationConfig.SSHKeys = &sshKeys
Expand Down

0 comments on commit b4174a7

Please sign in to comment.