Skip to content

Commit 6b5a9a5

Browse files
authored
fix: Remove outdated login hint message (#18044)
#### Summary This message is outdated and doesn't work well when someone has the plugins pre-downloaded already (e.g. using an offline license).
1 parent a16d0ba commit 6b5a9a5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cli/internal/auth/token.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ func GetAuthTokenIfNeeded(logger zerolog.Logger, sources []*specs.Source, destin
4040
tc := cqapiauth.NewTokenClient()
4141
token, err := tc.GetToken()
4242
if err != nil {
43-
recommendLogin := strings.Contains(err.Error(), "Hint:")
44-
if recommendLogin {
45-
logger.Warn().Msg("when using the CloudQuery registry, it's recommended to log in via `cloudquery login`. Logging in allows for better rate limits and downloading of premium plugins")
43+
hasLoginHint := strings.Contains(err.Error(), "Hint:")
44+
if hasLoginHint {
4645
return cqapiauth.UndefinedToken, nil
4746
}
4847

0 commit comments

Comments
 (0)