Skip to content

Commit

Permalink
A friendlier default password prompt. Displays the user the password …
Browse files Browse the repository at this point in the history
…is being asked for.
  • Loading branch information
constfun committed Mar 31, 2012
1 parent 93e426b commit 6e9af0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabric/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def prompt_for_password(prompt=None, no_colon=False, stream=None):
handle_prompt_abort("a connection or sudo password")
stream = stream or sys.stderr
# Construct prompt
default = "[%s] Login password" % env.host_string
default = "[%s] '%s' password" % (env.host_string, env.user)

This comment has been minimized.

Copy link
@bitprophet

bitprophet Apr 2, 2012

If the language is tweaked a bit to read e.g. Login password for '%s', I can totally merge this :) thanks!

password_prompt = prompt if (prompt is not None) else default
if not no_colon:
password_prompt += ": "
Expand Down

0 comments on commit 6e9af0d

Please sign in to comment.