diff options
Diffstat (limited to 'examples/scripts')
-rwxr-xr-x | examples/scripts/yaml_to_ini.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/scripts/yaml_to_ini.py b/examples/scripts/yaml_to_ini.py index 09b9b5ec82..981176b2f2 100755 --- a/examples/scripts/yaml_to_ini.py +++ b/examples/scripts/yaml_to_ini.py @@ -23,6 +23,7 @@ from ansible import utils import os import yaml import sys +from six import iteritems class InventoryParserYaml(object): ''' Host inventory parser for ansible ''' @@ -176,7 +177,7 @@ if __name__ == "__main__": groupfh.write(yaml.dump(record.get_variables())) groupfh.close() - for (host_name, host_record) in yamlp._hosts.iteritems(): + for (host_name, host_record) in iteritems(yamlp._hosts): hostfiledir = os.path.join(dirname, "host_vars") if not os.path.exists(hostfiledir): print "* creating: %s" % hostfiledir |