Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

A friendlier default password prompt. Displays the user the password …

…is being asked for.
  • Loading branch information...
commit 6e9af0d4bf6e6b62e239e50244800304fc338cf3 1 parent 93e426b
@pacemkr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  fabric/
2  fabric/
@@ -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)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
password_prompt = prompt if (prompt is not None) else default
if not no_colon:
password_prompt += ": "

0 comments on commit 6e9af0d

Please sign in to comment.
Something went wrong with that request. Please try again.