Skip to content

Commit

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

[release-4.10] Bug 2050227: Don't shortcut OpenStack scraping if quota is unavailable
  • Loading branch information
openshift-merge-robot committed Feb 4, 2022
2 parents 4fc9fa8 + e5b9001 commit 1ddc64b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/asset/installconfig/openstack/validation/cloudinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,11 @@ func (ci *CloudInfo) collectInfo(ic *types.InstallConfig, opts *clientconfig.Cli
if err != nil {
if isUnauthorized(err) {
logrus.Warnf("Missing permissions to fetch Quotas and therefore will skip checking them: %v", err)
return nil
}
if isNotFoundError(err) {
} else if isNotFoundError(err) {
logrus.Warnf("Quota API is not available and therefore will skip checking them: %v", err)
return nil
} else {
return errors.Wrap(err, "failed to load Quota")
}
return errors.Wrap(err, "failed to load Quota")
}

ci.NetworkExtensions, err = networkextensions.Get(ci.clients.networkClient)
Expand Down

0 comments on commit 1ddc64b

Please sign in to comment.