diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-02-03 06:34:50 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-02-03 06:34:50 +0000 |
commit | b529c65861eb298dacb5353d53382f1718fa7edc (patch) | |
tree | 6f83be0d93012fd0432a98579bab8efbff215608 /src | |
parent | 602c17ace52d055cbf7195ded76d0bd1d2f623fa (diff) | |
download | bcfg2-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')
-rw-r--r-- | src/lib/Client/Tools/__init__.py | 3 |
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] |