Skip to content

Commit

Permalink
vsphere: prevent duplicate validation check in multi-zone
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrt committed Sep 22, 2022
1 parent ebc4946 commit 4db999f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/asset/installconfig/platformprovisioncheck.go
Expand Up @@ -110,9 +110,10 @@ func (a *PlatformProvisionCheck) Generate(dependencies asset.Parents) error {
return err
}
case vsphere.Name:
err = vsconfig.ValidateForProvisioning(ic.Config)
if len(ic.Config.VSphere.VCenters) > 0 {
err = vsconfig.ValidateMultiZoneForProvisioning(ic.Config)
} else {
err = vsconfig.ValidateForProvisioning(ic.Config)
}
if err != nil {
return err
Expand Down

0 comments on commit 4db999f

Please sign in to comment.