Commit 96f1c6dc authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

make sure zone name ends with '.'

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 7f58e4a7
......@@ -218,6 +218,10 @@ class AXFRInDB:
def __init__(self, dbfile, zone_name):
self._dbfile = dbfile
self._zone_name = zone_name
# if the zone name doesn't contain the trailing dot, automatically
# add it.
if self._zone_name[-1] != '.':
self._zone_name += '.'
self._old_zone_id = None
self._new_zone_id = None
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment