-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
aix_devices doesn't handle multiple attribute instances #53366
Comments
Files identified in the description: If these files are inaccurate, please update the |
On first run this appears to work as expected. On subsequent runs only the first attribute is listed as 'ok' and it continues to 'change' the remaining attrs. I've spotted where this is going wrong in the code, fix to come ASAP.
|
Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.
For further information, please see: |
SUMMARY
The 1.1 version of the aix_devices module does not handle devices that may have multiple
instances of an attribute. For example, network interfaces can have multiple instances of
the alias4 attribute. I can add multiple alias4 attributes, but the module doesn't recognize
that there may be multiple alias4 values.
It appears that the module expects the attribute to have a single instance and the check routine only returns the first instance of an attribute.
ISSUE TYPE
COMPONENT NAME
Version 1.1 of module aix_devices (aix_devices.py)
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
AIX 7.2
STEPS TO REPRODUCE
EXPECTED RESULTS
If the alias4 entries exist, the task should complete without changes.
ACTUAL RESULTS
If the alias4 entries exist, the first alias4 completes without change, the second is added again (which doesn't add a duplicate entry).
The text was updated successfully, but these errors were encountered: