From a6c2e87be16010c43a19afbd0e26c5193de2f685 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Oct 2012 19:53:26 +0200 Subject: [PATCH] fixes --- yunohost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yunohost.py b/yunohost.py index e60df8d6..434c6302 100644 --- a/yunohost.py +++ b/yunohost.py @@ -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'))