mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
install questions: domain/user/password don't need default or example values
This commit is contained in:
parent
62ebd68e34
commit
a4526da4f2
1 changed files with 7 additions and 0 deletions
|
@ -2180,6 +2180,13 @@ def _set_default_ask_questions(arguments):
|
||||||
key = "app_manifest_%s_ask_%s" % (script_name, arg["name"])
|
key = "app_manifest_%s_ask_%s" % (script_name, arg["name"])
|
||||||
arg["ask"] = m18n.n(key)
|
arg["ask"] = m18n.n(key)
|
||||||
|
|
||||||
|
# Also it in fact doesn't make sense for any of those questions to have an example value nor a default value...
|
||||||
|
if arg.get("type") in ["domain", "user", "password"]:
|
||||||
|
if "example" in arg:
|
||||||
|
del arg["example"]
|
||||||
|
if "default" in arg:
|
||||||
|
del arg["domain"]
|
||||||
|
|
||||||
return arguments
|
return arguments
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue