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: