mirror of https://github.com/databricks/cli.git
Do not error if we cannot prompt for a profile in `auth login`
This commit is contained in:
parent
072fa812e2
commit
626335f1b4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue