summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-02-03 06:34:50 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-02-03 06:34:50 +0000
commitb529c65861eb298dacb5353d53382f1718fa7edc (patch)
tree6f83be0d93012fd0432a98579bab8efbff215608 /src/lib/Client/Tools
parent602c17ace52d055cbf7195ded76d0bd1d2f623fa (diff)
downloadbcfg2-b529c65861eb298dacb5353d53382f1718fa7edc.tar.gz
bcfg2-b529c65861eb298dacb5353d53382f1718fa7edc.tar.bz2
bcfg2-b529c65861eb298dacb5353d53382f1718fa7edc.zip
add a sleep to executor
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2780 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools')
-rw-r--r--src/lib/Client/Tools/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index 52f954978..263e91c7d 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -4,7 +4,7 @@ __revision__ = '$Revision$'
__all__ = ["Action", "APT", "Blast", "Chkconfig", "DebInit", "Encap", "launchd",
"Portage", "POSIX", "RPM", "RcUpdate", "SMF", "SYSV", "Yum"]
-import os, popen2, stat, sys, Bcfg2.Client.XML
+import os, popen2, stat, sys, Bcfg2.Client.XML, time
class toolInstantiationError(Exception):
'''This error is called if the toolset cannot be instantiated'''
@@ -51,6 +51,7 @@ class executor:
self.logger.debug('< %s' % line[:-1])
output.append(line[:-1])
line = runpipe.fromchild.readline()
+ time.sleep(0.1)
cmdstat = runpipe.poll()
output += [line[:-1] for line in runpipe.fromchild.readlines() \
if line]