-
Notifications
You must be signed in to change notification settings - Fork 78
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
Fixed ansible.utils.ipaddr('host/prefix') function if size of subnet is 1 #373
base: main
Are you sure you want to change the base?
Conversation
…is 1. If non CIDR IP is given to ansible.utils.ipaddr('host/prefix') function is not returning False value. e.g ``` "192.168.0.21" | ansible.utils.ipaddr('host/prefix') ``` Ideally above code should return False value. Hence corrected the behaviour.
Fixed ansible.utils.ipaddr('host/prefix') function if size of subnet …
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 35s |
… subnet is 1. Fixed ansible.utils.ipaddr('host/prefix') function if size of ip's in subnet is 1.
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 37s |
Update ipaddr _address_prefix_query testcases to test single ip.
for more information, see https://pre-commit.ci
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 33s |
…is 1. Fixed ansible.utils.ipaddr('host/prefix') function if size of subnet is 1.
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 51s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 20s |
SUMMARY
Fixes #372
ISSUE TYPE
COMPONENT NAME
ansible.utils.ipaddr
ADDITIONAL INFORMATION
If non CIDR IP is given to ansible.utils.ipaddr('host/prefix') function is not returning False value.
e.g
Ideally above code should return False value. Hence corrected the behavior.
if we run above playbook before my change, then playbook passes
After my change playbook fails as expected.