From 5d91f48903e4ae09f063adba9d9011a4ccacdb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sat, 7 May 2016 01:56:58 +0200 Subject: [PATCH] [enh] Handle password argument type at prompt from app manifest --- src/yunohost/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index a9d41800..a9ff2eb7 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -1512,7 +1512,10 @@ def _parse_args_from_manifest(manifest, action, args={}, auth=None): if arg_default is not None: 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) \ and arg_default is not None: arg_value = arg_default