summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-11-21 22:02:04 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-11-21 22:02:04 +0000
commit7d2a02799cf93b8cea4594fa9d7fa86a916ed6d7 (patch)
treee85bbad17936c61da5f4d7d5b78eac93ab71a7db /src/lib
parent1a8219748cd79c5e83c064460945f46c011048e8 (diff)
downloadbcfg2-7d2a02799cf93b8cea4594fa9d7fa86a916ed6d7.tar.gz
bcfg2-7d2a02799cf93b8cea4594fa9d7fa86a916ed6d7.tar.bz2
bcfg2-7d2a02799cf93b8cea4594fa9d7fa86a916ed6d7.zip
Fix incremental output in client (will display partial results of executor calls)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2511 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Client/Tools/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index 3f58ffbc8..078fcf818 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -42,9 +42,9 @@ class executor:
cmdstat = -1
while cmdstat == -1:
runpipe.fromchild.flush()
- moreOutput = runpipe.fromchild.read()
+ moreOutput = runpipe.fromchild.readline()
if len(moreOutput) > 0:
- self.logger.debug('< %s' % moreOutput)
+ self.logger.debug('< %s' % moreOutput[:-1])
output += moreOutput
cmdstat = runpipe.poll()