json file format error because of blank space

Bug #1546408 reported by zhaozhilong
6
This bug affects 1 person
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_template_version": "2015-10-15",
  "description ": "Sample Heat template that spins up multiple instances and a private network (JSON)",
  "resources ": {
    "security_group ": {
      "type": "OS::Nova::Server ",
      "properties": {
        "name": "Server1 ",
        "image":"cirros-0.3.4-x86_64-uec",
        "flavor":"m1.tiny",
        "networks": [{
          "port": {"get_resource" : "instance0_port0" }
        }]
      }
    },
    "instance0_port0" : {
      "type" : "OS::Neutron::Port",
      "properties" : {
        "network_id" : "05f44d7b-a6d0-409b-9166-b3795d7826ef"
      }
    }
}
}

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
Revision history for this message
zhaozhilong (zhaozhilong) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-heatclient (master)

Change abandoned by zhaozhilong (<email address hidden>) on branch: master
Review: https://review.openstack.org/281098

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.