-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Changed 'plugins/json_query.py' to use jebabin's solution to issue #27299 #30653
Conversation
@bdlamprecht This PR contains |
Fixed the |
The test
|
The test
|
Sorry about the previous commit not including the fix. Brand new developer here.
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.
If we want, this it will needs tests
At this point, I don't care what happens with the PR seeing as it is so old. |
@bdlamprecht Your branch does not contain a shippable.yml file. Please rebase your branch to trigger running of current tests. |
Given #30653 (comment) closing. |
SUMMARY
Submitting this PR as a solution for Issue #27299 .
This change uses the python library
ast
to resolve some issues that arise from using certain query strings includingstarts_with
,contains
, and others.This solution was from @jebabin . I'm submitting the PR because even though I don't understand the fix completely, it seems a simple enough of a fix to include future releases of Ansible (possibly even back-porting to other releases of Ansible 2.4).
ISSUE TYPE
COMPONENT NAME
json_query
ANSIBLE VERSION
ADDITIONAL INFORMATION
See Issue #27299 for details.
Before:
After: