Skip to content

Commit 1807988

Browse files
committed
Fix test failures caused by missing field
1 parent deb1844 commit 1807988

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
@@ -276,8 +276,10 @@ def __init__(self, host, username, password, token, insecure, debugging=0): # n
276276
self.host = host
277277
self.username = username
278278

279+
self.password = None
279280
if self.password == 'stdin':
280-
self.password = getpass.getpass("Password to connect to databricks at [" + self.host + "]: ")
281+
message = 'Password to connect to databricks at [{}]: '.format(self.host)
282+
self.password = getpass.getpass(message)
281283
else:
282284
self.password = password
283285

0 commit comments

Comments
 (0)