From 3b73e867871ffba01d849e4bc3d2dc0fffb87c96 Mon Sep 17 00:00:00 2001 From: Ken Raffenetti Date: Mon, 18 Sep 2006 18:19:09 +0000 Subject: fixed bug in MX record handling git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2277 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugins/Hostbase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/Server') diff --git a/src/lib/Server/Plugins/Hostbase.py b/src/lib/Server/Plugins/Hostbase.py index 8575bff15..e81c4dfd1 100644 --- a/src/lib/Server/Plugins/Hostbase.py +++ b/src/lib/Server/Plugins/Hostbase.py @@ -166,8 +166,8 @@ class Hostbase(Plugin): if not prevhost[1] == host[1] or not prevhost[2] == host[2]: self.filedata[zone[1]] += ("%-32s%-10s%-32s\n" % (host[2].split(".", 1)[0], 'A', host[1])) - self.filedata[zone[1]] += ("%-32s%-10s%-3s%-29s\n" % - ('', 'MX', host[4], host[5].split(".", 1)[0])) + self.filedata[zone[1]] += ("%-32s%-10s%-3s%-29s.\n" % + ('', 'MX', host[4], host[5])) if host[3]: if host[3].split(".", 1)[1] == zone[1]: self.filedata[zone[1]] += ("%-32s%-10s%-32s\n" % -- cgit v1.2.3-1-g7c22