diff --git a/lib/cdist/exec/local.py b/lib/cdist/exec/local.py index e24ae484..7fb63429 100644 --- a/lib/cdist/exec/local.py +++ b/lib/cdist/exec/local.py @@ -119,7 +119,7 @@ class Local(object): command = ["/bin/sh", "-e"] command.append(script) - self.run(command, env, return_output) + return self.run(command, env, return_output) def link_emulator(self, exec_path): """Link emulator to types""" diff --git a/lib/cdist/exec/remote.py b/lib/cdist/exec/remote.py index 0fb93e10..47b670b0 100644 --- a/lib/cdist/exec/remote.py +++ b/lib/cdist/exec/remote.py @@ -143,4 +143,4 @@ class Remote(object): command = ["/bin/sh", "-e"] command.append(script) - self.run(command, env, return_output) + return self.run(command, env, return_output)