manifest_parsing.py: Support string type args with defaults

This commit is contained in:
Alexandre Aubin 2021-05-13 19:50:58 +02:00
parent f66491978d
commit 7f926a791c

View file

@ -8,7 +8,7 @@ def argument_for_question(question, all_choices=False):
if question_type is None and question.get("choices"): if question_type is None and question.get("choices"):
question_type = "boolean" question_type = "boolean"
elif question_type is None and question.get("default"): elif question_type in [None, "string"] and question.get("default"):
question_type = "with_default" question_type = "with_default"
elif question_type is None and question["name"] == "admin": elif question_type is None and question["name"] == "admin":
question_type = "user" question_type = "user"