Skip to content

Commit

Permalink
fix: do not expose empty cipassword to API
Browse files Browse the repository at this point in the history
  • Loading branch information
jay7x authored Sep 12, 2024
1 parent 032717b commit 7ae7033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxmox/config_qemu_cloudinit.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (config CloudInit) mapToAPI(current *CloudInit, params map[string]interface
if config.UpgradePackages != nil && !version.Smaller(Version{Major: 8}) {
params["ciupgrade"] = Btoi(*config.UpgradePackages)
}
if config.UserPassword != nil {
if config.UserPassword != nil && *config.UserPassword != "" {
params["cipassword"] = *config.UserPassword
}
return
Expand Down

0 comments on commit 7ae7033

Please sign in to comment.