Conversion de chaînes de caractère selon la version de python

This commit is contained in:
Benjamin Bohard 2021-11-10 09:27:56 +01:00
parent 53f82ae1f1
commit ade2b385f0
1 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,8 @@ def run_module():
var_path = d.impl_get_path_by_opt(variable)
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]}}
if sys.version_info < (3,):
new_value_set = yml_params_to_unicode(new_value_set)
if variable.impl_is_multi():
method = module.params['state']