diff options
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] |