mirror of https://github.com/ansible/ansible.git
Issue 8872: use getpass.getpass() to read password.
This avoids passing the plaintext raw password into the script as a command-line argument, which shells such as bash and zsh will typically log into a file like ~/bash_history. As a small bonus, this works a LOT more smoothly if the user's password has characters in it that either the shell or Python syntax might like to interpret as metacharacters, like '\' or '"'. getpass.getpass() is part of Python's standard library in all versions between 2.4 and 3.3 at least.pull/8873/head
parent
893f15b30b
commit
bed2eb36d3
Loading…
Reference in New Issue