|
|
|
@ -330,12 +330,15 @@ class InventoryManager(object):
|
|
|
|
or applied subsets
|
|
|
|
or applied subsets
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hosts = []
|
|
|
|
|
|
|
|
|
|
|
|
# Check if pattern already computed
|
|
|
|
# Check if pattern already computed
|
|
|
|
if isinstance(pattern, list):
|
|
|
|
if isinstance(pattern, list):
|
|
|
|
pattern_hash = u":".join(pattern)
|
|
|
|
pattern_hash = u":".join(pattern)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
pattern_hash = pattern
|
|
|
|
pattern_hash = pattern
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if pattern_hash:
|
|
|
|
if not ignore_limits and self._subset:
|
|
|
|
if not ignore_limits and self._subset:
|
|
|
|
pattern_hash += u":%s" % to_text(self._subset, errors='surrogate_or_strict')
|
|
|
|
pattern_hash += u":%s" % to_text(self._subset, errors='surrogate_or_strict')
|
|
|
|
|
|
|
|
|
|
|
|
|