Skip to content

Commit

Permalink
Debug PRT
Browse files Browse the repository at this point in the history
  • Loading branch information
tpapaioa committed Sep 18, 2024
1 parent fcd2261 commit c1193a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion broker/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ def mp_split(*args, **kwargs):
if count is None:
return self.func(instance, *args, **kwargs)

return [self.func(instance, *args, **kwargs) for _ in range(count)]
breakpoint()
results = []
for _ in range(count):
host = self.func(instance, *args, **kwargs)[0]
results.append(host)
return results

return mp_split

Expand Down Expand Up @@ -163,6 +168,7 @@ def checkout(self):
if isinstance(host, exceptions.ProviderError):
err = host
hosts.remove(host)
breakpoint()
helpers.emit(hosts=[host.to_dict() for host in hosts])
self._hosts.extend(hosts)
helpers.update_inventory([host.to_dict() for host in hosts])
Expand Down

0 comments on commit c1193a2

Please sign in to comment.