diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-06-29 17:20:04 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-06-29 17:20:04 +0000 |
commit | 4679dbc7cbe4cae9561fcee90c4b88e0622eb590 (patch) | |
tree | 6ad9c50e844fed3cb121f204d2764a9edcd11722 | |
parent | 7fb86e1272b9521d6192606a16357c2245562524 (diff) | |
download | bcfg2-4679dbc7cbe4cae9561fcee90c4b88e0622eb590.tar.gz bcfg2-4679dbc7cbe4cae9561fcee90c4b88e0622eb590.tar.bz2 bcfg2-4679dbc7cbe4cae9561fcee90c4b88e0622eb590.zip |
Add probe execution display
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3392 ce84e21b-d406-0410-9b95-82705330c041
-rwxr-xr-x | src/sbin/bcfg2 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index 08cc391dd..d5ef99418 100755 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -101,6 +101,7 @@ class Client: def run_probe(self, probe): '''Execute probe''' name = probe.get('name') + self.logger.info("Running probe %s" % name) ret = Bcfg2.Client.XML.Element("probe-data", name=name, source=probe.get('source')) try: script = open(tempfile.mktemp(), 'w+') @@ -111,6 +112,7 @@ class Client: script.close() os.chmod(script.name, 0755) ret.text = os.popen(script.name).read().strip() + self.logger.info("Probe %s has result:\n%s" % (name, ret.text)) finally: os.unlink(script.name) except: |