Add default value for password-type args

This commit is contained in:
Alexandre Aubin 2023-02-24 16:25:06 +01:00
parent 1961b21f33
commit 7f45bf64ac

View file

@ -32,6 +32,8 @@ def get_default_values_for_questions(manifest, raise_if_no_default=True):
yield (name, str(question.get("default")))
elif question["type"] == "boolean":
yield (name, "1")
elif question["type"] == "password":
yield (name, "SomeSuperStrongPassword1234")
elif question.get("choices"):
if isinstance(question["choices"]):
choices = str(question["choices"])