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()