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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user