From f61d490ab6d27496653a0e27df61f9d030d562cf Mon Sep 17 00:00:00 2001 From: srinandan <13950006+srinandan@users.noreply.github.com> Date: Tue, 17 Oct 2023 15:10:18 -0700 Subject: [PATCH] bug: fixes condition for sa token #144 --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 750fcea1..27d9f646 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -80,7 +80,7 @@ var RootCmd = &cobra.Command{ apiclient.SetAPI(api) - if !metadataToken { + if !metadataToken && !defaultToken { apiclient.SetServiceAccount(cmdServiceAccount) apiclient.SetIntegrationToken(cmdToken) }