From c209b538261c843f62b15a05c5e879a9052d70a8 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Wed, 31 Jan 2007 14:04:13 +0000 Subject: Fix client metadata resolution (Resolves Ticket #383) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2734 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-admin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin index c7ae8e1f9..b13153d71 100755 --- a/src/sbin/bcfg2-admin +++ b/src/sbin/bcfg2-admin @@ -152,7 +152,7 @@ def get_repo_path(cfile='/etc/bcfg2.conf'): def load_stats(client): repo = get_repo_path() stats = lxml.etree.parse("%s/etc/statistics.xml" % (repo)) - hostent = stats.xpath('.//Node[@name="%s"]' % client) + hostent = stats.xpath('//Node[@name="%s"]' % client) if not hostent: err_exit("Could not find stats for client %s" % (client)) return hostent[0] -- cgit v1.2.3-1-g7c22