You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
This issue is due to Merged().commit() -- rather than Replaced().commit() -- being called from within Overridden() in plugins/modules/dcnm_image_policy.py.
* Fix for issue 347
Manually tested this to verify.
Still need to update integration and unit tests.
* dcnm_image_policy: Update integration test
Update integration test for overridden state.
1. playbooks/roles/dcnm_image_policy/dcnm_tests.yaml
- Add vars
- install_package_1
- uninstall_package_1
2. test/integration/targets/dcnm_image_policy/tests/dcnm_image_policy_overridden.yaml
- Add packages.install and packages.uninstall configuration
- Verify that merged state adds these packages to the controller config
- Verify that overridden state removes packages.install and packages.uninstall
- Verify that overridden state metadata.action is "replace" instead of "update"
* Fix for issue 347
Manually tested this to verify.
Still need to update integration and unit tests.
* dcnm_image_policy: Update integration test
Update integration test for overridden state.
1. playbooks/roles/dcnm_image_policy/dcnm_tests.yaml
- Add vars
- install_package_1
- uninstall_package_1
2. test/integration/targets/dcnm_image_policy/tests/dcnm_image_policy_overridden.yaml
- Add packages.install and packages.uninstall configuration
- Verify that merged state adds these packages to the controller config
- Verify that overridden state removes packages.install and packages.uninstall
- Verify that overridden state metadata.action is "replace" instead of "update"
Community Note
Ansible Version and collection version
DCNM version
Affected module(s)
Ansible Playbook
Debug Output
Expected Behavior
The above playbook should replace the image policy configuration to match the playbook.
Actual Behavior
After running the above playbook, the image policy configuration is not changed.
Image policy before and after running the above playbook (notice it contains package configuration).
The package configuration should be removed by the playbook.
Steps to Reproduce
The package information is not removed.
References
The text was updated successfully, but these errors were encountered: