force 'configuration' namespace if update
This commit is contained in:
parent
9de06705e8
commit
b610d66fcd
|
@ -36,6 +36,8 @@ class ConvertDynOptionDescription(DynOptionDescription):
|
||||||
Suffix could also contain invalid character, so we should "normalize" it
|
Suffix could also contain invalid character, so we should "normalize" it
|
||||||
"""
|
"""
|
||||||
def convert_suffix_to_path(self, suffix):
|
def convert_suffix_to_path(self, suffix):
|
||||||
|
if suffix is None:
|
||||||
|
return suffix
|
||||||
if not isinstance(suffix, str):
|
if not isinstance(suffix, str):
|
||||||
suffix = str(suffix)
|
suffix = str(suffix)
|
||||||
return normalize_family(suffix)
|
return normalize_family(suffix)
|
||||||
|
|
|
@ -116,7 +116,7 @@ class RougailUpgrade:
|
||||||
if variables is None:
|
if variables is None:
|
||||||
return root
|
return root
|
||||||
paths = self._get_path_variables(variables,
|
paths = self._get_path_variables(variables,
|
||||||
namespace == self.rougailconfig['variable_namespace'],
|
namespace == 'configuration',
|
||||||
namespace,
|
namespace,
|
||||||
)
|
)
|
||||||
constraints = root.find('constraints')
|
constraints = root.find('constraints')
|
||||||
|
@ -334,7 +334,7 @@ class RougailUpgrade:
|
||||||
subsubsubelement.attrib['mandatory'] = 'True'
|
subsubsubelement.attrib['mandatory'] = 'True'
|
||||||
if subsubsubelement.attrib['name'] in upgrade_help.get('variables', {}).get('type', {}):
|
if subsubsubelement.attrib['name'] in upgrade_help.get('variables', {}).get('type', {}):
|
||||||
subsubsubelement.attrib['type'] = upgrade_help.get('variables', {}).get('type', {})[subsubsubelement.attrib['name']]
|
subsubsubelement.attrib['type'] = upgrade_help.get('variables', {}).get('type', {})[subsubsubelement.attrib['name']]
|
||||||
if namespace == self.rougailconfig['variable_namespace']:
|
if namespace == 'configuration':
|
||||||
path = subsubsubelement.attrib['name']
|
path = subsubsubelement.attrib['name']
|
||||||
npath = normalize_family(subsubsubelement.attrib['name'])
|
npath = normalize_family(subsubsubelement.attrib['name'])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue