-
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
cli_parse: Fix finding relative template_path when used inside role/collection #333
cli_parse: Fix finding relative template_path when used inside role/collection #333
Conversation
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 03s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 04s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 24s |
This allows parser.template_path to behave as expected inside roles or collections when a path relative to the role/collection directory is provided.
a26edbd
to
b890e3d
Compare
for more information, see https://pre-commit.ci
…tils into cli_parse_find_needle
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 2m 55s |
tests/integration/targets/utils_cli_parse/output/ios_show_version_parsed.json
Outdated
Show resolved
Hide resolved
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 15s |
…tils into cli_parse_find_needle
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 40s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 06s |
…tils into cli_parse_find_needle
for more information, see https://pre-commit.ci
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 12s |
SUMMARY
This allows the
cli_parse
module to findparser.template_path
inside roles or collections when a path relative to the role/collection directory is provided.This makes behavior consistent with core modules like
copy
andtemplate
when paths are provided this way.Fixes #332
ISSUE TYPE
COMPONENT NAME
cli_parse
ADDITIONAL INFORMATION
See #332 for reproduction of the issue.
I used the same setup to validate that the changes fixed it.
With these changes cli_parse behaves as expected