summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-server
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-09-11 03:36:59 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-09-11 03:36:59 +0000
commit136a23aafedc7755e91de56fda6edac9be05cefe (patch)
tree97d126dd0290a554ff7fabaeabaaa2d0fd3a9ae7 /src/sbin/bcfg2-server
parent93f7b049fab7877fe2ec33db6820d61803f0efad (diff)
downloadbcfg2-136a23aafedc7755e91de56fda6edac9be05cefe.tar.gz
bcfg2-136a23aafedc7755e91de56fda6edac9be05cefe.tar.bz2
bcfg2-136a23aafedc7755e91de56fda6edac9be05cefe.zip
Make RecvStats use the same alias/address lookup logic as the rest of the server
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2237 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-server')
-rwxr-xr-xsrc/sbin/bcfg2-server3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-server b/src/sbin/bcfg2-server
index 506bfeb84..8e845a7d4 100755
--- a/src/sbin/bcfg2-server
+++ b/src/sbin/bcfg2-server
@@ -182,9 +182,10 @@ class Bcfg2Serv(Bcfg2.Server.Component.Component):
# Versioned stats to prevent tied client/server upgrade
if state.get('version') >= '2.0':
client = self.Core.metadata.resolve_client(address[0])
+ meta = self.Core.metadata.get_metadata(client)
# Update statistics
- self.Core.stats.updateStats(sdata, client)
+ self.Core.stats.updateStats(sdata, meta.hostname)
self.logger.info("Client %s reported state %s" %
(client, state.attrib['state']))