Update agent.go

This commit is contained in:
Daniel Hougaard
2024-06-19 19:24:11 +02:00
parent 5c149c6ac6
commit 1d622bb121
+1 -1
View File
@@ -900,7 +900,7 @@ var agentCmd = &cobra.Command{
return return
} }
authMethodValid, authStrategy := util.IsAuthMethodValid(agentConfig.Auth.Type) authMethodValid, authStrategy := util.IsAuthMethodValid(agentConfig.Auth.Type, false)
if !authMethodValid { if !authMethodValid {
util.PrintErrorMessageAndExit(fmt.Sprintf("The auth method '%s' is not supported.", agentConfig.Auth.Type)) util.PrintErrorMessageAndExit(fmt.Sprintf("The auth method '%s' is not supported.", agentConfig.Auth.Type))