Permalink
Browse files

Changed variable fab_debug -> fab_print_real_sudo as it was too generic.

  • Loading branch information...
1 parent eff6d02 commit c3bc2ce5f71e663fac8a335964c701d0bb188443 @chrisvest chrisvest committed Mar 9, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 fabric.py
View
@@ -59,7 +59,7 @@
'fab_new_host_key':'accept',
'fab_shell':'/bin/bash -l -c "%s"',
'fab_timestamp':datetime.datetime.utcnow().strftime('%F_%H-%M-%S'),
- 'fab_debug':False,
+ 'fab_print_real_sudo':False,
}
CONNECTIONS = []
@@ -276,7 +276,7 @@ def sudo(host, client, env, cmd, **kvargs):
"""
cmd = _lazy_format(cmd, env)
real_cmd = env['fab_shell'] % ("sudo -S " + cmd.replace('"', '\\"'))
- cmd = env['fab_debug'] and real_cmd or cmd
+ cmd = env['fab_print_real_sudo'] and real_cmd or cmd
if not _confirm_proceed('sudo', host, kvargs):
return False # TODO: should we return False in fail??
print("[%s] sudo: %s" % (host, cmd))

0 comments on commit c3bc2ce

Please sign in to comment.