Set the action result prior to calling clean

This commit is contained in:
jpic 2020-05-31 03:39:42 +02:00
parent a07d9c5e67
commit 93b95a1f50

View File

@ -66,11 +66,11 @@ class Target:
self.output.success(action)
result.status = 'success'
finally:
action.result = result
self.caller.results.append(result)
clean = getattr(action, 'clean', None)
if clean:
action.result = result
self.output.clean(action)
await clean(self)