summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2010-01-12 19:16:20 +0000
committerNarayan Desai <desai@mcs.anl.gov>2010-01-12 19:16:20 +0000
commit80f8da0cb96466e108963c88645b99bd32ce5f0f (patch)
treec98b9bb6bc67f3b3e35d9d954390b3d46b92f2cf
parent9afe5e46407af2613ae55b89ae9abafd7d7de6e1 (diff)
downloadbcfg2-80f8da0cb96466e108963c88645b99bd32ce5f0f.tar.gz
bcfg2-80f8da0cb96466e108963c88645b99bd32ce5f0f.tar.bz2
bcfg2-80f8da0cb96466e108963c88645b99bd32ce5f0f.zip
Metadata: build session cache properly for uuid clients [bugfix]
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5671 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Plugins/Metadata.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index 3f68011ca..94e3cfe26 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -517,7 +517,6 @@ class Metadata(Bcfg2.Server.Plugin.Plugin,
def resolve_client(self, addresspair):
'''Lookup address locally or in DNS to get a hostname'''
- #print self.session_cache
if addresspair in self.session_cache:
(stamp, uuid) = self.session_cache[addresspair]
if time.time() - stamp < 90:
@@ -705,7 +704,7 @@ class Metadata(Bcfg2.Server.Plugin.Plugin,
return False
# populate the session cache
if user != 'root':
- self.session_cache[address] = (time.time(), user)
+ self.session_cache[address] = (time.time(), client)
return True
def process_statistics(self, meta, _):