Skip to content

Commit

Permalink
Use correct key in error message when getting agent token
Browse files Browse the repository at this point in the history
  • Loading branch information
tnozicka committed Nov 2, 2023
1 parent 964418f commit f4e96e6
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 f4e96e6

Please sign in to comment.