Commit 4921d7de authored by Kean Johnston's avatar Kean Johnston
Browse files

[264] Do not prompt for user name and password if not interactive.

If you attempt to pipe commands in to bindctl and the session is not
interactive (i.e it is not a TTY) then do not attempt to read the user
name and password.
parent e03adbe6
......@@ -272,6 +272,11 @@ WARNING: The Python readline module isn't available, so some command line
self._print('Login failed: either the user name or password is '
# If this was not an interactive session do not prompt for login info.
if not sys.stdin.isatty():
return False
while True:
count = count + 1
if count > 3:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment