This commit is contained in:
root 2012-10-25 19:53:26 +02:00
parent 5d0f76773e
commit a6c2e87be1

View file

@ -125,7 +125,7 @@ def get_required_args(args, required_args, password=False):
else:
raise Exception #FIX
# Password
if not args['password'] and password and 'password' in required_args:
if args['password'] is None and 'password' in required_args and password:
if os.isatty(1):
args['password'] = getpass.getpass(colorize(required_args['password'] + ': ', 'cyan'))
pwd2 = getpass.getpass(colorize('Retype ' + required_args['password'][0].lower() + required_args['password'][1:] + ': ', 'cyan'))