removed unused objects from include results proc

pull/34466/head
Brian Coca 7 years ago committed by Brian Coca
parent c30ee42fe1
commit 1b34a17415

@ -52,15 +52,9 @@ class IncludedFile:
return "%s (%s): %s" % (self._filename, self._args, self._hosts)
@staticmethod
def process_include_results(results, tqm, iterator, inventory, loader, variable_manager):
def process_include_results(results, iterator, loader, variable_manager):
included_files = []
def get_original_host(host):
if host.name in inventory._hosts_cache:
return inventory._hosts_cache[host.name]
else:
return inventory.get_host(host.name)
for res in results:
original_host = res._host

@ -791,9 +791,7 @@ class StrategyBase:
try:
included_files = IncludedFile.process_include_results(
host_results,
self._tqm,
iterator=iterator,
inventory=self._inventory,
loader=self._loader,
variable_manager=self._variable_manager
)

@ -180,9 +180,7 @@ class StrategyModule(StrategyBase):
try:
included_files = IncludedFile.process_include_results(
host_results,
self._tqm,
iterator=iterator,
inventory=self._inventory,
loader=self._loader,
variable_manager=self._variable_manager
)

@ -297,9 +297,7 @@ class StrategyModule(StrategyBase):
try:
included_files = IncludedFile.process_include_results(
host_results,
self._tqm,
iterator=iterator,
inventory=self._inventory,
loader=self._loader,
variable_manager=self._variable_manager
)

Loading…
Cancel
Save