mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
commit
3b76e5159a
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ def get_default_values_for_questions(manifest, raise_if_no_default=True):
|
||||||
elif question["type"] == "password":
|
elif question["type"] == "password":
|
||||||
yield (name, "SomeSuperStrongPassword1234")
|
yield (name, "SomeSuperStrongPassword1234")
|
||||||
elif question.get("choices"):
|
elif question.get("choices"):
|
||||||
if isinstance(question["choices"]):
|
if isinstance(question["choices"], list):
|
||||||
choices = str(question["choices"])
|
choices = question["choices"]
|
||||||
else:
|
else:
|
||||||
choices = list(question["choices"].keys())
|
choices = list(question["choices"].keys())
|
||||||
yield (name, choices[0])
|
yield (name, choices[0])
|
||||||
|
|
Loading…
Add table
Reference in a new issue