Skip to content
Snippets Groups Projects
Commit 2560c4dd authored by tikitavi's avatar tikitavi Committed by Matthew Mosesohn
Browse files

fixing dump of ordered dictionaries in inventory script (#4343)

parent 254a0ab6
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ AVAILABLE_COMMANDS = ['help', 'print_cfg', 'print_ips', 'load']
_boolean_states = {'1': True, 'yes': True, 'true': True, 'on': True,
'0': False, 'no': False, 'false': False, 'off': False}
yaml = YAML()
yaml.Representer.add_representer(OrderedDict, yaml.Representer.represent_dict)
def get_var_as_bool(name, default):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment