From 848096eafb092348b1da32ad43a5b094e489d0b8 Mon Sep 17 00:00:00 2001 From: Dai Dang Van Date: Wed, 24 May 2017 16:52:50 +0700 Subject: [PATCH] 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 --- designate/dnsutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designate/dnsutils.py b/designate/dnsutils.py index 24c246777..4ff3ad14a 100644 --- a/designate/dnsutils.py +++ b/designate/dnsutils.py @@ -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]: