fix update

This commit is contained in:
Emmanuel Garette 2021-11-26 08:47:21 +01:00
parent 56d0a610ff
commit c7de427475

View file

@ -139,7 +139,7 @@ class RougailUpgrade:
for name in choices:
choice = SubElement(variable, 'choice')
choice.text = name
if not has_value and choices[0]['type'] != 'variable':
if not has_value:
value = SubElement(variable, 'value')
value.text = choices[0]
variable.attrib['mandatory'] = 'True'