Skip to content

Commit 749c837

Browse files
committed
[4.21] OCPBUGS-59514: redacted install config for baremetal
Signed-off-by: Iury Gregory Melo Ferreira <[email protected]>
1 parent 8fdf0bb commit 749c837

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/asset/manifests/operators.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,12 @@ func redactedInstallConfig(config types.InstallConfig) ([]byte, error) {
334334
PrismAPICallTimeout: p.PrismAPICallTimeout,
335335
}
336336
newConfig.Platform.Nutanix = &newNutanixPlatform
337+
338+
case newConfig.Platform.BareMetal != nil:
339+
for _, host := range newConfig.Platform.BareMetal.Hosts {
340+
host.BMC.Username = ""
341+
host.BMC.Password = ""
342+
}
337343
}
338344

339345
return yaml.Marshal(newConfig)

0 commit comments

Comments
 (0)