raiseerrors.AnsibleError("YAML inventory support is deprecated in 0.6 and removed in 0.7, see the migration script in examples/scripts in the git checkout")
data=file(host_list).read()
ifnotdata.startswith("---"):
self.parser=InventoryParser(filename=host_list)
self.groups=self.parser.groups.values()
else:
raiseerrors.AnsibleError("YAML inventory support is deprecated in 0.6 and removed in 0.7, see the migration script in examples/scripts in the git checkout")