Set the action result prior to calling clean
This commit is contained in:
parent
3039f75179
commit
f5c7e0b1a1
@ -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