From 9f6de19121a2be5ce96dd45d910a19cd704da335 Mon Sep 17 00:00:00 2001 From: j4n Date: Mon, 16 Feb 2026 19:18:43 +0100 Subject: [PATCH] fix(cmdeploy): add __call__ to LocalExec so status works with @local --- cmdeploy/src/cmdeploy/sshexec.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmdeploy/src/cmdeploy/sshexec.py b/cmdeploy/src/cmdeploy/sshexec.py index c8dd2c79..5658de41 100644 --- a/cmdeploy/src/cmdeploy/sshexec.py +++ b/cmdeploy/src/cmdeploy/sshexec.py @@ -89,6 +89,11 @@ class LocalExec: self.verbose = verbose self.docker = docker + def __call__(self, call, kwargs=None, log_callback=None): + if kwargs is None: + kwargs = {} + return call(**kwargs) + def logged(self, call, kwargs: dict): where = "locally" if self.docker: