Commit c55d7e43 authored by Evan Hunt's avatar Evan Hunt
Browse files

oops... need to treat TTL as a string, but still compare it against maxttl

as an int


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1293 e5f2f494-b856-4b98-b285-d166d9295462
parent 06792038
......@@ -227,7 +227,7 @@ class MasterFile:
if more:
raise MasterFileError('Invalid $TTL statement')
self.__ttl = parse_ttl(second)
if self.__ttl > self.__maxttl:
if int(self.__ttl) > self.__maxttl:
raise MasterFileError('TTL too high: ' + second)
return True
elif re.match('\$generate', first, re.I):
......
Markdown is supported
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