mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
fixes
This commit is contained in:
parent
5d0f76773e
commit
a6c2e87be1
1 changed files with 1 additions and 1 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue