Permalink
Browse files

Change the env variable for the sudo password

  • Loading branch information...
dhubbard
dhubbard committed Jul 24, 2013
1 parent 7fe4ef6 commit e9294749addf23a3eb718d0fa97323fd697e29fa
Showing with 2 additions and 2 deletions.
  1. +2 −2 sshmap/sshmap
View
@@ -91,14 +91,14 @@ if __name__ == "__main__":
if options.sudo:
# Prompt for password, we really need to add a password file option
try:
- options.password = os.environ['SUDO_PASSWORD']
+ options.password = os.environ['SSHMAP_SUDO_PASSWORD']
except KeyError:
options.password = getpass.getpass(
'Enter sudo password for user ' + getpass.getuser() + ': ')
elif options.password:
# Prompt for password, we really need to add a password file option
try:
- options.password = os.environ['SUDO_PASSWORD']
+ options.password = os.environ['SSHMAP_SUDO_PASSWORD']
except KeyError:
options.password = getpass.getpass(
'Enter password for user ' + getpass.getuser() + ': ')

0 comments on commit e929474

Please sign in to comment.