Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
benthomasson committed Jun 8, 2023
1 parent 2a03cc4 commit 94ca0e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ansible_rulebook/rule_set_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ async def _call_action(
raise
elif action_plugin := self.find_action(action):
try:
result = await action_plugin["main"](
await action_plugin["main"](
event_log=self.event_log,
inventory=inventory,
hosts=hosts,
Expand All @@ -464,13 +464,12 @@ async def _call_action(
)
except Exception as e:
logger.error("Error calling action %s, err %s", action, str(e))
result = dict(error=e)
except BaseException as e:
logger.error(e)
raise
elif action_plugin := find_action(*split_collection_name(action)):
try:
result = await action_plugin.main(
await action_plugin.main(
event_log=self.event_log,
inventory=inventory,
hosts=hosts,
Expand All @@ -485,7 +484,6 @@ async def _call_action(
)
except Exception as e:
logger.error("Error calling action %s, err %s", action, str(e))
result = dict(error=e)
except BaseException as e:
logger.error(e)
raise
Expand Down

0 comments on commit 94ca0e2

Please sign in to comment.