mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
removed unused objects from include results proc
This commit is contained in:
@@ -52,15 +52,9 @@ class IncludedFile:
|
|||||||
return "%s (%s): %s" % (self._filename, self._args, self._hosts)
|
return "%s (%s): %s" % (self._filename, self._args, self._hosts)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def process_include_results(results, tqm, iterator, inventory, loader, variable_manager):
|
def process_include_results(results, iterator, loader, variable_manager):
|
||||||
included_files = []
|
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:
|
for res in results:
|
||||||
|
|
||||||
original_host = res._host
|
original_host = res._host
|
||||||
|
|||||||
@@ -791,9 +791,7 @@ class StrategyBase:
|
|||||||
try:
|
try:
|
||||||
included_files = IncludedFile.process_include_results(
|
included_files = IncludedFile.process_include_results(
|
||||||
host_results,
|
host_results,
|
||||||
self._tqm,
|
|
||||||
iterator=iterator,
|
iterator=iterator,
|
||||||
inventory=self._inventory,
|
|
||||||
loader=self._loader,
|
loader=self._loader,
|
||||||
variable_manager=self._variable_manager
|
variable_manager=self._variable_manager
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -180,9 +180,7 @@ class StrategyModule(StrategyBase):
|
|||||||
try:
|
try:
|
||||||
included_files = IncludedFile.process_include_results(
|
included_files = IncludedFile.process_include_results(
|
||||||
host_results,
|
host_results,
|
||||||
self._tqm,
|
|
||||||
iterator=iterator,
|
iterator=iterator,
|
||||||
inventory=self._inventory,
|
|
||||||
loader=self._loader,
|
loader=self._loader,
|
||||||
variable_manager=self._variable_manager
|
variable_manager=self._variable_manager
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -297,9 +297,7 @@ class StrategyModule(StrategyBase):
|
|||||||
try:
|
try:
|
||||||
included_files = IncludedFile.process_include_results(
|
included_files = IncludedFile.process_include_results(
|
||||||
host_results,
|
host_results,
|
||||||
self._tqm,
|
|
||||||
iterator=iterator,
|
iterator=iterator,
|
||||||
inventory=self._inventory,
|
|
||||||
loader=self._loader,
|
loader=self._loader,
|
||||||
variable_manager=self._variable_manager
|
variable_manager=self._variable_manager
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user