From 7f926a791c270f5f5fd976e2d81a8ea42666012d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 13 May 2021 19:50:58 +0200 Subject: [PATCH] manifest_parsing.py: Support string type args with defaults --- lib/manifest_parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/manifest_parsing.py b/lib/manifest_parsing.py index 5c04eab..079e188 100644 --- a/lib/manifest_parsing.py +++ b/lib/manifest_parsing.py @@ -8,7 +8,7 @@ def argument_for_question(question, all_choices=False): if question_type is None and question.get("choices"): 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" elif question_type is None and question["name"] == "admin": question_type = "user"