Skip to content

Commit

Permalink
Add comment as recommended in review.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Aug 6, 2024
1 parent 7a3449c commit a156f81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scenario/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,10 @@ def run(self, event: "_Event", state: "State") -> "State":
charm will invoke when handling the Event.
"""
if event.action:
# Create an ActionOutput object now so that there is somewhere to
# store the logs and results while the charm is processing the
# action handler(s). This is not accessible until run() finishes and
# the handlers have finished.
self.action_output = ActionOutput()
with self._run(event=event, state=state) as ops:
ops.emit()
Expand Down

0 comments on commit a156f81

Please sign in to comment.