diff --git a/plugins/action/config_template.py b/plugins/action/config_template.py index 472d483..d3291df 100644 --- a/plugins/action/config_template.py +++ b/plugins/action/config_template.py @@ -48,6 +48,7 @@ from ansible import __version__ as __ansible_version__ __metaclass__ = type + CONFIG_TYPES = { 'ini': 'return_config_overrides_ini', 'json': 'return_config_overrides_json', @@ -66,9 +67,11 @@ try: except NameError: FileNotFoundError = OSError + if yaml.SafeDumper not in AnsibleDumper.__bases__: AnsibleDumper.__bases__ = (yaml.SafeDumper,) + AnsibleDumper.__bases__ + class IDumper(AnsibleDumper): def increase_indent(self, flow=False, indentless=False): return super(IDumper, self).increase_indent(flow, False)