summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-12-11 16:49:03 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-12-11 16:49:03 +0000
commiteab309290aebb1f366d0a9f95f0bdb4c3bccd033 (patch)
tree55b9180cd5cce1903597a83c79d52da8b5788470 /src/lib
parent84dfc8ea1451e679f4cefccd990024a1a10fbf72 (diff)
downloadbcfg2-eab309290aebb1f366d0a9f95f0bdb4c3bccd033.tar.gz
bcfg2-eab309290aebb1f366d0a9f95f0bdb4c3bccd033.tar.bz2
bcfg2-eab309290aebb1f366d0a9f95f0bdb4c3bccd033.zip
Fix partial command output problem
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2581 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Client/Tools/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index a705234fa..9b7acee02 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -47,6 +47,10 @@ class executor:
self.logger.debug('< %s' % moreOutput[:-1])
output += moreOutput
cmdstat = runpipe.poll()
+ for line in runpipe.fromchild.readlines():
+ if len(line) > 0:
+ self.logger.debug('< %s' % line[:-1])
+ output += line
return (cmdstat, [line for line in output.split('\n') if line])