mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Add default value for password-type args
This commit is contained in:
parent
1961b21f33
commit
7f45bf64ac
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ def get_default_values_for_questions(manifest, raise_if_no_default=True):
|
||||||
yield (name, str(question.get("default")))
|
yield (name, str(question.get("default")))
|
||||||
elif question["type"] == "boolean":
|
elif question["type"] == "boolean":
|
||||||
yield (name, "1")
|
yield (name, "1")
|
||||||
|
elif question["type"] == "password":
|
||||||
|
yield (name, "SomeSuperStrongPassword1234")
|
||||||
elif question.get("choices"):
|
elif question.get("choices"):
|
||||||
if isinstance(question["choices"]):
|
if isinstance(question["choices"]):
|
||||||
choices = str(question["choices"])
|
choices = str(question["choices"])
|
||||||
|
|
Loading…
Add table
Reference in a new issue