mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-03-26 21:43:02 +00:00
Fix issue with multiple records in recordset
Story: #2010527 Task: #47136 Sort records in recordset so it can be compared to existing ones and not to trigger update in case of a different order. Change-Id: Ib5d2af56616532174c29ec2be86827ccd0a17940
This commit is contained in:
@@ -181,6 +181,10 @@ class DnsRecordsetModule(OpenStackModule):
|
||||
module_min_sdk_version = '0.28.0'
|
||||
|
||||
def _needs_update(self, params, recordset):
|
||||
if params['records'] is not None:
|
||||
params['records'] = sorted(params['records'])
|
||||
if recordset['records'] is not None:
|
||||
recordset['records'] = sorted(recordset['records'])
|
||||
for k in ('description', 'records', 'ttl', 'type'):
|
||||
if k not in params:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user