mirror of https://github.com/databricks/cli.git
Ask for host when .databrickscfg doesn't exist (#1041)
## Changes Ask for host when .databrickscfg doesn't exist This fixes a regression introduced by https://github.com/databricks/cli/pull/1003
This commit is contained in:
parent
cdf29da27b
commit
66e923261d
|
@ -133,7 +133,7 @@ func setHost(ctx context.Context, profileName string, persistentAuth *auth.Persi
|
||||||
return p.Name == profileName
|
return p.Name == profileName
|
||||||
})
|
})
|
||||||
// Tolerate ErrNoConfiguration here, as we will write out a configuration as part of the login flow.
|
// Tolerate ErrNoConfiguration here, as we will write out a configuration as part of the login flow.
|
||||||
if !errors.Is(err, databrickscfg.ErrNoConfiguration) {
|
if err != nil && !errors.Is(err, databrickscfg.ErrNoConfiguration) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if persistentAuth.Host == "" {
|
if persistentAuth.Host == "" {
|
||||||
|
|
Loading…
Reference in New Issue