Skip to content

Commit

Permalink
Merge pull request #4527 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…4474-to-release-4.6

Bug 1913813: OpenStack: Skip collecting info for empty subnet IDs
  • Loading branch information
openshift-merge-robot committed Jan 22, 2021
2 parents a8eaa59 + 00bf070 commit 26aab99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/asset/installconfig/openstack/validation/cloudinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ func (ci *CloudInfo) collectInfo(ic *types.InstallConfig) error {
}

func (ci *CloudInfo) getSubnet(subnetID string) (*subnets.Subnet, error) {
if subnetID == "" {
return nil, nil
}
subnet, err := subnets.Get(ci.clients.networkClient, subnetID).Extract()
if err != nil {
var gerr *gophercloud.ErrResourceNotFound
Expand Down

0 comments on commit 26aab99

Please sign in to comment.