mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Handle password argument type at prompt from app manifest
This commit is contained in:
parent
edf96bc778
commit
5d91f48903
1 changed files with 4 additions and 1 deletions
|
@ -1512,7 +1512,10 @@ def _parse_args_from_manifest(manifest, action, args={}, auth=None):
|
||||||
if arg_default is not None:
|
if arg_default is not None:
|
||||||
ask_string += ' (default: {0})'.format(arg_default)
|
ask_string += ' (default: {0})'.format(arg_default)
|
||||||
|
|
||||||
input_string = msignals.prompt(ask_string)
|
# Check for a password argument
|
||||||
|
is_password = True if arg_type == 'password' else False
|
||||||
|
|
||||||
|
input_string = msignals.prompt(ask_string, is_password)
|
||||||
if (input_string == '' or input_string is None) \
|
if (input_string == '' or input_string is None) \
|
||||||
and arg_default is not None:
|
and arg_default is not None:
|
||||||
arg_value = arg_default
|
arg_value = arg_default
|
||||||
|
|
Loading…
Add table
Reference in a new issue