Skip to content

Commit

Permalink
Merge pull request #1521 from tnozicka/fix-agent-token-error
Browse files Browse the repository at this point in the history
Use correct key in error message when getting agent token
  • Loading branch information
scylla-operator-bot[bot] authored Nov 3, 2023
2 parents 382095e + f4e96e6 commit e08cbbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/helpers/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func ParseTokenFromConfig(data []byte) (string, error) {
func GetAgentAuthTokenFromAgentConfigSecret(secret *corev1.Secret) (string, error) {
configData, ok := secret.Data[naming.ScyllaAgentConfigFileName]
if !ok {
return "", fmt.Errorf("secret %q is missing %q data", naming.ObjRef(secret), naming.ScyllaAgentAuthTokenFileName)
return "", fmt.Errorf("secret %q is missing %q data", naming.ObjRef(secret), naming.ScyllaAgentConfigFileName)
}

return ParseTokenFromConfig(configData)
Expand Down

0 comments on commit e08cbbb

Please sign in to comment.