diff --git a/src/rougail/update.py b/src/rougail/update.py index 9214596e..c9c0ef47 100644 --- a/src/rougail/update.py +++ b/src/rougail/update.py @@ -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'