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
Return correct version on installed VyOS #39115
Conversation
Previously existing regexp will shows only "VyOS" without numeric output of router version. For example: from "Version: VyOS 1.1.6" only VyOS will be written in ansible_net_version variable For more informative output numeric value should be returned as well
Tests in Shippable should be adjusted as well, since they're expecting limited output about VyOS version |
!component +lib/ansible/modules/network/vyos/vyos_facts.py |
CI failure in unit tests: https://app.shippable.com/github/ansible/ansible/runs/62201/3/tests |
CI failure in unit tests: https://app.shippable.com/github/ansible/ansible/runs/81682/4/tests |
@maugli13 The change looks good to me. Could you also modify the assertions in https://github.com/ansible/ansible/blob/devel/test/units/modules/network/vyos/test_vyos_facts.py so that the tests pass and we can merge it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please modify the assertions in the unit tests at https://github.com/ansible/ansible/blob/devel/test/units/modules/network/vyos/test_vyos_facts.py so that CI passes.
Closing and re-opening to trigger CI. |
* Return correct version on installed VyOS (#39115) * Return correct version on installed VyOS Previously existing regexp will shows only "VyOS" without numeric output of router version. For example: from "Version: VyOS 1.1.6" only VyOS will be written in ansible_net_version variable For more informative output numeric value should be returned as well * Fixed unittests (cherry picked from commit 235b11f) * Added changelog
* Return correct version on installed VyOS (#39115) * Return correct version on installed VyOS Previously existing regexp will shows only "VyOS" without numeric output of router version. For example: from "Version: VyOS 1.1.6" only VyOS will be written in ansible_net_version variable For more informative output numeric value should be returned as well * Fixed unittests (cherry picked from commit 235b11f) * Added changelog
* Return correct version on installed VyOS Previously existing regexp will shows only "VyOS" without numeric output of router version. For example: from "Version: VyOS 1.1.6" only VyOS will be written in ansible_net_version variable For more informative output numeric value should be returned as well * Fixed unittests (cherry picked from commit 235b11f)
* Return correct version on installed VyOS (#39115) * Return correct version on installed VyOS Previously existing regexp will shows only "VyOS" without numeric output of router version. For example: from "Version: VyOS 1.1.6" only VyOS will be written in ansible_net_version variable For more informative output numeric value should be returned as well * Fixed unittests (cherry picked from commit 235b11f) * Added changelog
Previously existing regexp will shows only "VyOS" without numeric output of router version.
For example: from "Version: VyOS 1.1.6" only VyOS will be written in ansible_net_version variable
For more informative output numeric value should be returned as well
SUMMARY
Previously existing regexp will shows only "VyOS" without numeric output of router version.
For example: from "Version: VyOS 1.1.6" only VyOS will be written in ansible_net_version variable
For more informative output numeric value should be returned as well
ISSUE TYPE
COMPONENT NAME
vyos_facts
ANSIBLE VERSION
ADDITIONAL INFORMATION
Below you can see before and after outputs