Conversion de chaînes de caractère selon la version de python
This commit is contained in:
parent
53f82ae1f1
commit
ade2b385f0
|
@ -135,6 +135,8 @@ def run_module():
|
||||||
var_path = d.impl_get_path_by_opt(variable)
|
var_path = d.impl_get_path_by_opt(variable)
|
||||||
old_value = c.getattr(var_path)
|
old_value = c.getattr(var_path)
|
||||||
new_value_set = {var_path: {'value': new_value, 'sub': [(d.impl_get_path_by_opt(sub), variables[sub]) for sub in sub_variables]}}
|
new_value_set = {var_path: {'value': new_value, 'sub': [(d.impl_get_path_by_opt(sub), variables[sub]) for sub in sub_variables]}}
|
||||||
|
if sys.version_info < (3,):
|
||||||
|
new_value_set = yml_params_to_unicode(new_value_set)
|
||||||
|
|
||||||
if variable.impl_is_multi():
|
if variable.impl_is_multi():
|
||||||
method = module.params['state']
|
method = module.params['state']
|
||||||
|
|
Loading…
Reference in New Issue