Skip to content

Commit becc65c

Browse files
committed
Correct logged secret name when secret DNE.
Signed-off-by: Humair Khan <[email protected]>
1 parent b54a861 commit becc65c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/dspipeline_params.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ func (p *DSPAParams) SetupObjectParams(ctx context.Context, dsp *dspa.DataScienc
320320
p.ObjectStorageConnection.SecretAccessKey = base64.StdEncoding.EncodeToString([]byte(generatedPass))
321321
createNewSecret = true
322322
} else {
323-
log.Error(err, fmt.Sprintf("Storage secret %s was specified in CR but does not exist.",
324-
p.ObjectStorageConnection.CredentialsSecret.SecretName))
323+
log.Error(err, fmt.Sprintf("Storage secret [%s] was specified in CR but does not exist.",
324+
credsSecretName))
325325
return err
326326
}
327327
} else if err != nil {

0 commit comments

Comments
 (0)