Remove TOML warning on emit (#48385)

pull/48391/head
Matt Martz 6 years ago committed by Jordan Borean
parent 7db2861961
commit b908a348a6

@ -129,11 +129,9 @@ if HAS_TOML and hasattr(toml, 'TomlEncoder'):
AnsibleSequence: self.dump_funcs.get(list),
AnsibleUnicode: self.dump_funcs.get(str),
})
display.warning(WARNING_MSG)
toml_dumps = partial(toml.dumps, encoder=AnsibleTomlEncoder())
else:
def toml_dumps(data):
display.warning(WARNING_MSG)
return toml.dumps(convert_yaml_objects_to_native(data))

Loading…
Cancel
Save