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

* [fix]: [AH-724]: fix secret issue
BT-10437
Pragyesh Mishra 2025-01-06 11:34:11 +00:00 committed by Harness
parent f4dfe93677
commit 09a6e983ae
1 changed files with 2 additions and 2 deletions

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
}