json file format error because of blank space
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-heatclient |
In Progress
|
Undecided
|
zhaozhilong |
Bug Description
1). when we use HOT template of json format, like :
{
"heat_
"description ": "Sample Heat template that spins up multiple instances and a private network (JSON)",
"resources ": {
"security_group ": {
"type": "OS::Nova::Server ",
"properties": {
"name": "Server1 ",
"networks": [{
"port": {"get_resource" : "instance0_port0" }
}]
}
},
"instance0_
"type" : "OS::Neutron:
"properties" : {
}
}
}
}
2). it will appear error, just because we have one or more blank space in the json key. see blow:
"description ": # have a blank space
...
"type": "OS::Nova::Server ", # also have s blank space
3). it will appear error, when we use this HOT template to create stack:
-- unknow type "OS::Nova::Server ",
-- unknow type "description ":
Changed in heat: | |
assignee: | nobody → zhaozhilong (zhaozhilong) |
Changed in heat: | |
status: | New → In Progress |
Changed in python-heatclient: | |
assignee: | nobody → zhaozhilong (zhaozhilong) |
status: | New → In Progress |
no longer affects: | heat |
waited to be reviewed: /review. openstack. org/#/c/ 281098/
https:/