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)
|
||||
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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user