From 626335f1b4cda061174891230f21d865be9c52db Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Tue, 3 Sep 2024 17:38:53 +0200 Subject: [PATCH] Do not error if we cannot prompt for a profile in `auth login` --- cmd/auth/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/auth/login.go b/cmd/auth/login.go index f87a2a02..79b79546 100644 --- a/cmd/auth/login.go +++ b/cmd/auth/login.go @@ -19,7 +19,7 @@ import ( func promptForProfile(ctx context.Context, defaultValue string) (string, error) { if !cmdio.IsInTTY(ctx) { - return "", fmt.Errorf("the command is being run in a non-interactive environment, please specify a profile using --profile") + return "", nil } prompt := cmdio.Prompt(ctx)