From 1164e83477c233a1f234ea2da5ce90f5ea65045f Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 23 Sep 2015 12:17:20 -0400 Subject: [PATCH] Remove unnecessary calls to save inventory restrictions since 81bf88b --- lib/ansible/vars/hostvars.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/ansible/vars/hostvars.py b/lib/ansible/vars/hostvars.py index abacfd31bfd..195744401f3 100644 --- a/lib/ansible/vars/hostvars.py +++ b/lib/ansible/vars/hostvars.py @@ -38,13 +38,7 @@ class HostVars(collections.Mapping): self._lookup = {} self._loader = loader - # temporarily remove the inventory filter restriction - # so we can compile the variables for all of the hosts - # in inventory - restriction = inventory._restriction - inventory.remove_restriction() hosts = inventory.get_hosts(ignore_limits_and_restrictions=True) - inventory.restrict_to_hosts(restriction) # check to see if localhost is in the hosts list, as we # may have it referenced via hostvars but if created implicitly