From f79363ad6962a40fddd19b683f7cc14a39de5bd3 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Mon, 8 May 2023 12:28:44 +0100 Subject: [PATCH] Pass a `Callback` instance, not a tuple. Signed-off-by: Pedro Algarvio --- src/saltfactories/daemons/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/saltfactories/daemons/container.py b/src/saltfactories/daemons/container.py index 1578ca1e..4c753988 100644 --- a/src/saltfactories/daemons/container.py +++ b/src/saltfactories/daemons/container.py @@ -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): """