Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change the env variable for the sudo password

  • Loading branch information...
commit e9294749addf23a3eb718d0fa97323fd697e29fa 1 parent 7fe4ef6
dhubbard authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 sshmap/sshmap
View
4 sshmap/sshmap
@@ -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() + ': ')
Please sign in to comment.
Something went wrong with that request. Please try again.