Fix mistaken object

The function is called dnspyrecords_to_recordsetlist but
we are create a RecordList object.

By the way, we are creating too many objects without
calling validate().
I think this is reason why we still can create them.

Change-Id: I2a655be3cb69afcfa40743b66a15c6e82deead28
This commit is contained in:
Dai Dang Van 2017-05-24 16:52:50 +07:00
parent 9da98b59b2
commit 848096eafb
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ def from_dnspython_zone(dnspython_zone):
def dnspyrecords_to_recordsetlist(dnspython_records):
rrsets = objects.RecordList()
rrsets = objects.RecordSetList()
for rname in six.iterkeys(dnspython_records):
for rdataset in dnspython_records[rname]: