summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-08-29 01:45:10 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-08-29 01:45:10 +0000
commit7ed77647f8555da2e36840fb66c885e55f1b6ae8 (patch)
treea34a3973bb6be2ce15ac94437eaa5d45148422b3 /src
parent7e8565a59723cb299d499bbcd9bb5abd4ac5c9ff (diff)
downloadbcfg2-7ed77647f8555da2e36840fb66c885e55f1b6ae8.tar.gz
bcfg2-7ed77647f8555da2e36840fb66c885e55f1b6ae8.tar.bz2
bcfg2-7ed77647f8555da2e36840fb66c885e55f1b6ae8.zip
Simple metadata bugfix
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2131 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Metadata.py b/src/lib/Server/Metadata.py
index 9d232d7c5..8eeb1d400 100644
--- a/src/lib/Server/Metadata.py
+++ b/src/lib/Server/Metadata.py
@@ -59,7 +59,7 @@ class Metadata:
self.aliases = {}
self.clientdata = xdata
for client in xdata.findall('./Client'):
- if address in client.attrib:
+ if 'address' in client.attrib:
self.addresses[client.get('address')] = client.get('name')
for alias in [alias for alias in client.findall('Alias') if 'address' in alias.attrib]:
self.addresses[alias.get('address')] = client.get('name')