barnybug/cli53 — Issue #28: check_origin dns.zone.NoSOA  and  NoneType' object has no attribute 'is_subdomain'
Author: ChFernandez
Created: 2012-01-13 20:21:35+00:00
State: open

Hello Im trying to import a long bind file into the amazon dns servers with cli53 and I get two errors depending on what I do..
first I get this one:

Traceback (most recent call last):
File "/home/cfernandez/EC2ACCESS/cli53/bin/cli53", line 22, in
cli53.cli53.main()
File "/home/cfernandez/EC2ACCESS/cli53/src/cli53/cli53.py", line 599, in main
args.func(args)
File "/home/cfernandez/EC2ACCESS/cli53/src/cli53/cli53.py", line 357, in cmd_import
zone = dns.zone.from_text(text, origin=origin, check_origin=True)
File "build/bdist.linux-x86_64/egg/dns/zone.py", line 761, in from_text
File "build/bdist.linux-x86_64/egg/dns/zone.py", line 719, in read
File "build/bdist.linux-x86_64/egg/dns/zone.py", line 518, in check_origin
dns.zone.NoSOA

Im not good reading logs from python at all so kind of confused I do see the NOSOA so I do have the SOA in it but is with my settings still not amazons of course so I just in case comment it out but then I get this:
Traceback (most recent call last):
File "/home/cfernandez/EC2ACCESS/cli53/bin/cli53", line 22, in
cli53.cli53.main()
File "/home/cfernandez/EC2ACCESS/cli53/src/cli53/cli53.py", line 599, in main
args.func(args)
File "/home/cfernandez/EC2ACCESS/cli53/src/cli53/cli53.py", line 357, in cmd_import
zone = dns.zone.from_text(text, origin=origin, check_origin=True)
File "build/bdist.linux-x86_64/egg/dns/zone.py", line 761, in from_text
File "build/bdist.linux-x86_64/egg/dns/zone.py", line 710, in read
File "build/bdist.linux-x86_64/egg/dns/zone.py", line 586, in _rr_line
AttributeError: 'NoneType' object has no attribute 'is_subdomain'