summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdebian/rules2
-rwxr-xr-xsrc/sbin/bcfg2-server3
2 files changed, 3 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index 9a77139eb..d3a344100 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
# DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
# Comment this line if you wish to build without pycentral or pysupport
-DEB_PYTHON_SYSTEM := pycentral
+#DEB_PYTHON_SYSTEM := pycentral
DEB_PYTHON_MODULE_PACKAGE := bcfg2
ifdef DEB_PYTHON_SYSTEM
DEB_DH_INSTALLINIT_ARGS := -n
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']))