Skip to content

Commit

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

Bug 2014165: pkg/cvo/egress: Load HTTPS proxy from Proxy status
  • Loading branch information
openshift-merge-robot committed Oct 15, 2021
2 parents 4444489 + 2ba3021 commit 4a67954
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cvo/egress.go
Expand Up @@ -21,9 +21,9 @@ func (optr *Operator) getHTTPSProxyURL() (*url.URL, error) {
return nil, err
}

if &proxy.Spec != nil {
if proxy.Spec.HTTPSProxy != "" {
proxyURL, err := url.Parse(proxy.Spec.HTTPSProxy)
if &proxy.Status != nil {
if proxy.Status.HTTPSProxy != "" {
proxyURL, err := url.Parse(proxy.Status.HTTPSProxy)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 4a67954

Please sign in to comment.