Description
Example of sudo password prompt when env.password is non-empty:
[jforcier@192.168.0.180] out: sudo password: [Enter for previous]
On master, it looks like this instead:
Password for jforcier@localhost [Enter for previous]:
Obviously things have to change somewhat do deal with the fact that we're printing the "real" sudo prompt instead of our own, thus the host prefix. However, note how the colon has been swapped around -- that's kind of ugly.
I'm not sure there's a way to fix this given that the sudo password: part is "real" stdout/stderr, and the [Enter for previous] part is printed by the local Python. May be as simple as changing env.sudo_prompt to drop the colon and add it into the local Python side of things; but make sure that works with the various combinations of settings re: pty/combine_streams/etc.
Originally submitted by Jeff Forcier (bitprophet) on 2010-07-14 at 10:39am EDT
Relations
Closed as Done on 2010-08-14 at 10:48pm EDT
Description
Example of sudo password prompt when
env.passwordis non-empty:On master, it looks like this instead:
Obviously things have to change somewhat do deal with the fact that we're printing the "real" sudo prompt instead of our own, thus the host prefix. However, note how the colon has been swapped around -- that's kind of ugly.
I'm not sure there's a way to fix this given that the
sudo password:part is "real" stdout/stderr, and the[Enter for previous]part is printed by the local Python. May be as simple as changingenv.sudo_promptto drop the colon and add it into the local Python side of things; but make sure that works with the various combinations of settings re: pty/combine_streams/etc.Originally submitted by Jeff Forcier (bitprophet) on 2010-07-14 at 10:39am EDT
Relations
Closed as Done on 2010-08-14 at 10:48pm EDT