Skip to content

Commit 57facd4

Browse files
committed
Fix test failures caused by missing field
1 parent 8145aa1 commit 57facd4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

databricks_cli/configure/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def configure_cli(token, insecure, stdin):
8585
if token:
8686
_configure_cli_token(profile, insecure_str)
8787
elif stdin:
88-
_configure_cli_stdin()
88+
_configure_cli_stdin(profile, insecure_str)
8989
else:
9090
_configure_cli_password(profile, insecure_str)
9191

databricks_cli/configure/provider.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,10 @@ def __init__(self, host, username, password, token, insecure): # noqa
267267
self.host = host
268268
self.username = username
269269

270+
self.password = None
270271
if self.password == 'stdin':
271-
self.password = getpass.getpass("Password to connect to databricks at [" + self.host + "]: ")
272+
message = 'Password to connect to databricks at [{}]: '.format(self.host)
273+
self.password = getpass.getpass(message)
272274
else:
273275
self.password = password
274276

0 commit comments

Comments
 (0)