Skip to content

Commit

Permalink
OCPBUGS-36504: uploader.getPullSecret fails if there is not auth raw
Browse files Browse the repository at this point in the history
  • Loading branch information
pastequo committed Jul 3, 2024
1 parent 3de6157 commit 18d0d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/uploader/auth_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func getPullSecret(clusterPullSecret string, k8sclient k8sclient.K8SClient, key
if err != nil {
return nil, errors.Wrapf(err, "failed to parse pull secret")
}
if auth, ok := pullSecret[key]; ok {
if auth, ok := pullSecret[key]; ok && auth.AuthRaw != "" {
return &auth, nil
}
return nil, errors.Errorf("pull secret doesn't contain authentication information for %s", key)
Expand Down

0 comments on commit 18d0d74

Please sign in to comment.