From bbef928a6d02a43efb11a855b0951fd4db3d6381 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 14 Oct 2011 16:04:55 +0200 Subject: [PATCH] --copy paste error Signed-off-by: Steven Armstrong --- lib/cdist/exec/remote.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cdist/exec/remote.py b/lib/cdist/exec/remote.py index 2de16426..e1d9f920 100644 --- a/lib/cdist/exec/remote.py +++ b/lib/cdist/exec/remote.py @@ -114,9 +114,9 @@ class Remote(object): self.log.debug("Remote run: %s", command) try: if return_output: - return subprocess.check_output(command, env=env).decode() + return subprocess.check_output(command).decode() else: - subprocess.check_call(command, env=env) + subprocess.check_call(command) except subprocess.CalledProcessError: raise cdist.Error("Command failed: " + " ".join(command)) except OSError as error: @@ -144,9 +144,9 @@ class Remote(object): try: if return_output: - return subprocess.check_output(command, env=env).decode() + return subprocess.check_output(command).decode() else: - subprocess.check_call(command, env=env) + subprocess.check_call(command) except subprocess.CalledProcessError as error: script_content = self.run(["cat", script]) self.log.error("Code that raised the error:\n%s", script_content)