diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-01-31 14:04:13 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-01-31 14:04:13 +0000 |
commit | c209b538261c843f62b15a05c5e879a9052d70a8 (patch) | |
tree | e8f2582d922b8d8a390e29289dfe0ae6d2c7e991 /src/sbin/bcfg2-admin | |
parent | d54f95faf4d7f915154d7595986d459784fdbdfd (diff) | |
download | bcfg2-c209b538261c843f62b15a05c5e879a9052d70a8.tar.gz bcfg2-c209b538261c843f62b15a05c5e879a9052d70a8.tar.bz2 bcfg2-c209b538261c843f62b15a05c5e879a9052d70a8.zip |
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
Diffstat (limited to 'src/sbin/bcfg2-admin')
-rwxr-xr-x | src/sbin/bcfg2-admin | 2 |
1 files changed, 1 insertions, 1 deletions
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] |