JSON Query cannot parse invalid characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Luke Short |
Bug Description
Using a customized post-deploy.yaml can lead to an error with config-download deployment/
TASK [Lookup deployment UUID] *******
Thursday 31 October 2019 16:13:58 +0300 (0:00:00.536) 0:30:41.357 ******
fatal: [cauqctr02]: FAILED! => {"msg": "JMESPathError in json_query filter plugin:\nUnexpected token: -2: Parse error at column 16, token \"-2\" (NUMBER), for expression:
fatal: [cauqctr03]: FAILED! => {"msg": "JMESPathError in json_query filter plugin:\nUnexpected token: -2: Parse error at column 16, token \"-2\" (NUMBER), for expression:
fatal: [cauqctr01]: FAILED! => {"msg": "JMESPathError in json_query filter plugin:\nUnexpected token: -2: Parse error at column 16, token \"-2\" (NUMBER), for expression:
Reviewed: https:/ /review. opendev. org/693910 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=e028953d0b1 507f0c048bddf0d 5cedab69f4bfbe
Committed: https:/
Submitter: Zuul
Branch: master
commit e028953d0b1507f 0c048bddf0d5ced ab69f4bfbe
Author: Luke Short <email address hidden>
Date: Tue Nov 12 14:17:52 2019 -0500
Escape invalid JSON characters during deployment.
By first quoting the JSON query, it is possible to easily pass
it to the json_query plugin. This allows elements with special
characters, such as a hyphen -, to be resolvable.
Change-Id: I56f3e5f96dc25f 16aed585ca6678d e53721071b7
Closes-Bug: #1853321
Signed-off-by: Luke Short <email address hidden>