From ab48a72ce135df073b3be572e8fe24bcc6296421 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 15 Feb 2012 16:25:18 +0100 Subject: [PATCH] return results from run() Signed-off-by: Nico Schottelius --- lib/cdist/exec/local.py | 2 +- lib/cdist/exec/remote.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)