diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-06-03 20:10:16 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-06-03 20:10:16 +0000 |
commit | dc0f82b0b3bce69f9a146126aabf0b2063e64a47 (patch) | |
tree | 9759b6fc13e29e40c3ed99313569698b0469acdd /src/lib | |
parent | c7b41b673e27be7ed0f5abf4859aacdfba77a6be (diff) | |
download | bcfg2-dc0f82b0b3bce69f9a146126aabf0b2063e64a47.tar.gz bcfg2-dc0f82b0b3bce69f9a146126aabf0b2063e64a47.tar.bz2 bcfg2-dc0f82b0b3bce69f9a146126aabf0b2063e64a47.zip |
Reflect null probe responses in client metadata
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4655 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Server/Plugins/Metadata.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py index 9244bb8a0..b24dd0c66 100644 --- a/src/lib/Server/Plugins/Metadata.py +++ b/src/lib/Server/Plugins/Metadata.py @@ -385,6 +385,10 @@ class Metadata(Bcfg2.Server.Plugin.Plugin): if data.text == None: self.logger.error("Got null response to probe %s from %s" % \ (data.get('name'), client.hostname)) + try: + self.probedata[client.hostname].update({data.get('name'): ''}) + except KeyError: + self.probedata[client.hostname] = {data.get('name'): ''} return dlines = data.text.split('\n') self.logger.debug("%s:probe:%s:%s" % (client.hostname, |