[fix]: [AH-724]: fix access key secret issue (#3228)

* [fix]: [AH-724]: fix secret issue
This commit is contained in:
Pragyesh Mishra 2025-01-06 11:34:11 +00:00 committed by Harness
parent f4dfe93677
commit 09a6e983ae

View File

@ -149,8 +149,8 @@ func getCreds(
if reg.UserName != "" {
return reg.UserName, secretKey, nil
}
accessKey, err := getSecretValue(ctx, spacePathStore, secretService, reg.SecretSpaceID,
reg.SecretIdentifier)
accessKey, err := getSecretValue(ctx, spacePathStore, secretService, reg.UserNameSecretSpaceID,
reg.UserNameSecretIdentifier)
if err != nil {
return "", "", err
}