Fixed resources duplication

This commit is contained in:
Evgeniy L 2015-04-06 19:00:00 -07:00
parent 6b07497fd3
commit d6cbc03841

View File

@ -50,7 +50,7 @@ class AnsibleOrchestration(base.BaseExtension):
result_resources = self._get_resources_with_tags(node_tags)
resources.extend(result_resources)
return resources
return dict((r['id'], r) for r in resources).values()
def _get_resources_with_tags(self, tags):
resources = []