mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix so module nios_host_record
can remove aliases (#1470)
* fix for https://github.com/ansible-collections/community.general/issues/1335 * added changelog fragment * Update changelogs/fragments/nios_host_record-fix-aliases-removal.yml Co-authored-by: Felix Fontein <felix@fontein.de> * extend changelog to specify CNAMES Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
f37eb12580
commit
496be77a2b
2 changed files with 6 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- nios_host_record - fix to remove ``aliases`` (CNAMES) for configuration comparison (https://github.com/ansible-collections/community.general/issues/1335).
|
|
@ -455,6 +455,9 @@ class WapiModule(WapiBase):
|
|||
return False
|
||||
|
||||
elif isinstance(proposed_item, list):
|
||||
if key == 'aliases':
|
||||
if set(current_item) != set(proposed_item):
|
||||
return False
|
||||
for subitem in proposed_item:
|
||||
if not self.issubset(subitem, current_item):
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue