Skip to content

Commit

Permalink
Pass a Callback instance, not a tuple.
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
  • Loading branch information
s0undt3ch committed May 8, 2023
1 parent 67d1192 commit f79363a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/saltfactories/daemons/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def after_terminate(self, callback, *args, **kwargs):
:keyword kwargs:
The keyword arguments to pass to the callback
"""
self._after_terminate_callbacks.append((callback, args, kwargs))
self._after_terminate_callbacks.append(Callback(func=callback, args=args, kwargs=kwargs))

def container_start_check(self, callback, *args, **kwargs):
"""
Expand Down

0 comments on commit f79363a

Please sign in to comment.