Skip to content

Commit

Permalink
Ask for host when .databrickscfg doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
fjakobs committed Dec 4, 2023
1 parent cdf29da commit 9736ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/auth/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func setHost(ctx context.Context, profileName string, persistentAuth *auth.Persi
return p.Name == profileName
})
// 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
}
if persistentAuth.Host == "" {
Expand Down

0 comments on commit 9736ef5

Please sign in to comment.