Merge pull request #13186 from nitzmahone/add_host_cache_fix

fix for dynamic (add_host) hosts not available in hostvars
This commit is contained in:
Brian Coca
2015-11-16 12:01:00 -08:00
3 changed files with 42 additions and 0 deletions

View File

@@ -455,6 +455,8 @@ class Inventory(object):
def clear_pattern_cache(self):
''' called exclusively by the add_host plugin to allow patterns to be recalculated '''
global HOSTS_PATTERNS_CACHE
HOSTS_PATTERNS_CACHE = {}
self._pattern_cache = {}
def groups_for_host(self, host):