Set the action result prior to calling clean
This commit is contained in:
parent
a07d9c5e67
commit
93b95a1f50
@ -66,11 +66,11 @@ class Target:
|
|||||||
self.output.success(action)
|
self.output.success(action)
|
||||||
result.status = 'success'
|
result.status = 'success'
|
||||||
finally:
|
finally:
|
||||||
|
action.result = result
|
||||||
self.caller.results.append(result)
|
self.caller.results.append(result)
|
||||||
|
|
||||||
clean = getattr(action, 'clean', None)
|
clean = getattr(action, 'clean', None)
|
||||||
if clean:
|
if clean:
|
||||||
action.result = result
|
|
||||||
self.output.clean(action)
|
self.output.clean(action)
|
||||||
await clean(self)
|
await clean(self)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user