Skip to content

Commit

Permalink
fix for remove the old cloud-init on local disks
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimLakt committed Jul 30, 2024
1 parent 08a36b0 commit 02f7151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/proxmox/common/step_remove_cloud_init_drive.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s *stepRemoveCloudInitDrive) Run(ctx context.Context, state multistep.Stat
}

for _, controller := range diskControllers {
if vmParams[controller] != nil && strings.Contains(vmParams[controller].(string), "-cloudinit,media=cdrom") {
if vmParams[controller] != nil && strings.Contains(vmParams[controller].(string), "-cloudinit") && strings.Contains(vmParams[controller].(string), ",media=cdrom") {
delete = append(delete, controller)
}
}
Expand Down

0 comments on commit 02f7151

Please sign in to comment.