-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nios_host_record module doesn't allow to remove an alias/cname #1335
Comments
Files identified in the description: If these files are inaccurate, please update the |
ping |
pescobar
added a commit
to pescobar/community.general
that referenced
this issue
Dec 10, 2020
This was referenced Dec 10, 2020
felixfontein
added a commit
that referenced
this issue
Dec 14, 2020
* fix for #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 issue is fixed in #1470 so I am closing it |
felixfontein
pushed a commit
that referenced
this issue
Dec 15, 2020
* fix for #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> (cherry picked from commit 496be77) Co-authored-by: Pablo Escobar Lopez <pescobar001@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SUMMARY
When updating a host object to remove an alias (CNAME) module
nios_host_record
doesn't detect the removed alias and doesn't update the host object. It only updates the host object when adding extra aliases.ISSUE TYPE
COMPONENT NAME
nios_host_record
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
We are running ansible on centos8 with python 3.6.8
collection
community.general
version1.2.0
wapi_version: "2.3.1"
infoblox-client==0.5.0
STEPS TO REPRODUCE
When executing this playbook the second task doesn't change. Doesn't update the host object
EXPECTED RESULTS
host object is updated removing an alias
ACTUAL RESULTS
host object is not updated and no alias is removed
EXTRA INFO
Checking the code I think the problem can be in this block of code https://github.com/ansible-collections/community.general/blob/main/plugins/module_utils/net_tools/nios/api.py#L433-L469 because function
issubset
will returntrue
when removing an element from the list of aliases and thus the host object is not updated.The text was updated successfully, but these errors were encountered: