Resource group 'attributes' output should be a Json
Bug #1394094 reported by
Qiming Teng
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Invalid
|
Medium
|
Song Li | ||
python-heatclient |
Fix Released
|
Medium
|
Song Li |
Bug Description
Currently, the 'attributes' output from ResourceGroup is a python dict. This won't be a problem if the output is dumped using CLI because heatclient is dumping it as a valid Json.
{ '0': 'value1', '1': 'value2'}
However, there are possibilities the output is referenced directly inside a template. To meet those use cases, it has better be converted into a valid Json in the first place, i.e.
{"0": "value1", "1": "value2"}
Changed in heat: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in heat: | |
assignee: | nobody → Song Li (lisong-cruise) |
Changed in python-heatclient: | |
milestone: | none → v0.3.0 |
Changed in python-heatclient: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
but {get_attr} lets you index any element of a complex structure. This looks invalid to me.
http:// docs.openstack. org/developer/ heat/template_ guide/hot_ spec.html# get-attr