Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove another --sudo prompt we missed

  • Loading branch information...
commit 3c248d66fea990c121e2db1002edb4202c5f7b8e 1 parent 870893f
@dwighthubbard authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  setup.py
  2. +2 −1  sshmap/sshmap.py
View
2  setup.py
@@ -19,7 +19,7 @@
setup(
name="sshmap",
- version="0.5.56",
+ version="0.5.57",
author="Dwight Hubbard",
author_email="dhubbard@yahoo-inc.com",
url="https://github.com/yahoo/sshmap",
View
3  sshmap/sshmap.py
@@ -371,7 +371,8 @@ def run_command(host, command="uname -a", username=None, password=None,
if check_prompt:
if password in el or 'assword:' in el or \
'[sudo] password' in el or el.strip() == '' or \
- el.strip() in defaults.sudo_message:
+ el.strip() in defaults.sudo_message or \
+ el.strip().startswith('sudo:'):
skip = True
else:
check_prompt = False
Please sign in to comment.
Something went wrong with that request. Please try again.