removed unused objects from include results proc

This commit is contained in:
Brian Coca 2018-01-03 10:51:26 -05:00 committed by Brian Coca
parent c30ee42fe1
commit 1b34a17415
4 changed files with 1 additions and 13 deletions

View file

@ -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

View file

@ -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
)

View file

@ -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
)

View file

@ -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
)