JSON/YAML conversion unable to parse integer-only keys

Bug #1467026 reported by Kent Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Low
Kent Wang

Bug Description

I noticed this while working on a related bug: https://bugs.launchpad.net/heat/+bug/1286380

That if we call simple_parse or parse (like what the unit tests do) from heat.common.template_format.py, if we pass in a template file with like:

"F17": {
 "32": "F17-i386-cfntools",
 "64": "F17-x86_64-cfntools"
},

when the parser reaches key "32", it throws an exception. However when I change the key to "F32", everything works fine. Looks like the convert_json_to_yaml function only worked all this time because it appended an '__order__' string to every key before the parsing.

Maybe we should append something as well to fix simple_parse and parse

Kent Wang (k.wang)
Changed in heat:
assignee: nobody → Kent Wang (k.wang)
Changed in heat:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Kent Wang (k.wang) wrote :
Changed in heat:
status: Triaged → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → liberty-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: liberty-2 → 5.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.