summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Bcfg2')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Yum.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
index 4330de971..4608bcca5 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
@@ -904,11 +904,13 @@ class YumCollection(Collection):
rv = helper.wait()
errlines = stderr.splitlines()
if rv:
+ if not errlines:
+ errlines.append("No error output")
self.logger.error("Packages: error running bcfg2-yum-helper "
"(returned %d): %s" % (rv, errlines[0]))
for line in errlines[1:]:
self.logger.error("Packages: %s" % line)
- else:
+ elif errlines:
self.debug_log("Packages: debug info from bcfg2-yum-helper: %s" %
errlines[0])
for line in errlines[1:]: