Skip to content

Commit c2280b4

Browse files
committed
Cover the case where the action.output is None
1 parent bfcbc0b commit c2280b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

juju/action.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def status(self):
1414

1515
async def fetch_output(self):
1616
completed_action = await self.model._get_completed_action(self.id)
17-
self.results = completed_action.output
17+
self.results = {} if completed_action.output is None else \
18+
completed_action.output
1819
self._status = completed_action.status
1920

2021
async def wait(self):

0 commit comments

Comments
 (0)