summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Hostbase.py
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2006-09-27 22:23:58 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2006-09-27 22:23:58 +0000
commita9abc440cc0c411f9975e1827d71776364bdb659 (patch)
tree0349ee555b0d16a24ca5f911b3e329fa530a02e5 /src/lib/Server/Plugins/Hostbase.py
parent82c3087ee2cf83c423127c348b6b5a12461242dd (diff)
downloadbcfg2-a9abc440cc0c411f9975e1827d71776364bdb659.tar.gz
bcfg2-a9abc440cc0c411f9975e1827d71776364bdb659.tar.bz2
bcfg2-a9abc440cc0c411f9975e1827d71776364bdb659.zip
changes in database models for zone information
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2335 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/Hostbase.py')
-rw-r--r--src/lib/Server/Plugins/Hostbase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Hostbase.py b/src/lib/Server/Plugins/Hostbase.py
index 589d8920b..f4381d4b9 100644
--- a/src/lib/Server/Plugins/Hostbase.py
+++ b/src/lib/Server/Plugins/Hostbase.py
@@ -137,7 +137,7 @@ class Hostbase(Plugin):
WHERE z.zone_id = \'%s\'""" % zone[0])
self.templates['zone'].nameservers = cursor.fetchall()
cursor.execute("""SELECT i.ip_addr FROM hostbase_zone_addresses z
- INNER JOIN hostbase_ip i ON z.ip_id = i.id
+ INNER JOIN hostbase_zoneaddress i ON z.zoneaddress_id = i.id
WHERE z.zone_id = \'%s\'""" % zone[0])
self.templates['zone'].addresses = cursor.fetchall()
cursor.execute("""SELECT m.priority, m.mx FROM hostbase_zone_mxs z