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

pull/4344/head
tikitavi 2019-03-13 02:57:34 +03:00 committed by Matthew Mosesohn
parent 254a0ab69d
commit 2560c4dda3
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ AVAILABLE_COMMANDS = ['help', 'print_cfg', 'print_ips', 'load']
_boolean_states = {'1': True, 'yes': True, 'true': True, 'on': True, _boolean_states = {'1': True, 'yes': True, 'true': True, 'on': True,
'0': False, 'no': False, 'false': False, 'off': False} '0': False, 'no': False, 'false': False, 'off': False}
yaml = YAML() yaml = YAML()
yaml.Representer.add_representer(OrderedDict, yaml.Representer.represent_dict)
def get_var_as_bool(name, default): def get_var_as_bool(name, default):