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
AWX sending internal server error when trying to create a smart inventory via API.
Using curl to update the API: curl -u user:password -ksXPOST https://host/api/v2/inventories/ -d @test -H "Content-Type: application/json"
with below payload: { "name": "Nonprod15", "description": "Nonprod15", "organization": 92, "kind": "smart", "host_filter": "groups__name=nonprod15-(nonprod15-a-1)master", "variables": "", "insights_credential": null }
Getting the error: {"host_filter":["Invalid query groups__name=nonprod15-(nonprod15-a-1)master"]}
ENVIRONMENT
AWX version: 1.0.4.0
AWX install method: docker on linux
Ansible version: 2.4.0
Operating System: OSX
Web Browser: curl
STEPS TO REPRODUCE
Try to update the API as per description above
EXPECTED RESULTS
Expected to create smart inventory as per definition
ACTUAL RESULTS
Server error with error mentioned in the description
ADDITIONAL INFORMATION
I can create smart inventory with any other groups that doesn't contain parentheses.
The text was updated successfully, but these errors were encountered:
kefiras
changed the title
AWX doesn't like parentheses in json payload
AWX doesn't like parentheses in json payload when creating smart inventory
Jan 24, 2019
ISSUE TYPE
COMPONENT NAME
SUMMARY
AWX sending internal server error when trying to create a smart inventory via API.
Using curl to update the API:
curl -u user:password -ksXPOST https://host/api/v2/inventories/ -d @test -H "Content-Type: application/json"
with below payload:
{ "name": "Nonprod15", "description": "Nonprod15", "organization": 92, "kind": "smart", "host_filter": "groups__name=nonprod15-(nonprod15-a-1)master", "variables": "", "insights_credential": null }
Getting the error:
{"host_filter":["Invalid query groups__name=nonprod15-(nonprod15-a-1)master"]}
ENVIRONMENT
STEPS TO REPRODUCE
Try to update the API as per description above
EXPECTED RESULTS
Expected to create smart inventory as per definition
ACTUAL RESULTS
Server error with error mentioned in the description
ADDITIONAL INFORMATION
I can create smart inventory with any other groups that doesn't contain parentheses.
The text was updated successfully, but these errors were encountered: