From 7ed77647f8555da2e36840fb66c885e55f1b6ae8 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 29 Aug 2006 01:45:10 +0000 Subject: Simple metadata bugfix git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2131 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') 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') -- cgit v1.2.3-1-g7c22