From c7de4274752d909a0a4641afee6ba640d02e94e8 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 26 Nov 2021 08:47:21 +0100 Subject: [PATCH] fix update --- src/rougail/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'