Return the correct RRSet object in Central.create_recordset

Previously, we returned the input RecordSet, rather than the newly
created RecordSet object. This likely hasn't caused any harm, but
was inconsistent with all the other create_ methods.

Change-Id: I75342cda4e1d7a46a28d471261d51c954c333f2b
This commit is contained in:
Kiall Mac Innes
2014-11-17 11:33:44 +00:00
parent 50d7616152
commit f0be1afeaf

View File

@@ -1003,7 +1003,7 @@ class Service(service.RPCService):
if len(recordset.records) > 0:
self._increment_domain_serial(context, domain.id)
return recordset
return created_recordset
def get_recordset(self, context, domain_id, recordset_id):
domain = self.storage.get_domain(context, domain_id)