From 9be2c94dc602e47f01ff968c9908fe42ad0ad2cf Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 3 Dec 2007 20:38:02 -0500 Subject: [PATCH] Make the logged command output useable in a shell. --- pypungi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypungi/__init__.py b/pypungi/__init__.py index ff34e9a2..fe8beddd 100644 --- a/pypungi/__init__.py +++ b/pypungi/__init__.py @@ -56,7 +56,7 @@ def _doRunCommand(command, logger, rundir='/tmp', output=subprocess.PIPE, error= """Run a command and log the output. Error out if we get something on stderr""" - logger.info("Running %s" % ' '.join(command)) + logger.info("Running %s" % subprocess.list2cmdline(command)) p1 = subprocess.Popen(command, cwd=rundir, stdout=output, stderr=error, universal_newlines=True, env=env) (out, err) = p1.communicate()