Handle non-string type values

Bug #1298548 reported by Thomas Herve
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Thomas Herve

Bug Description

When passing a template with a bogus type value, like type: {foo: bar} in yaml, heat-engine blows up with "AttributeError: 'dict' object has no attribute 'endswith'". We should check that it's a string earliers.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/83533

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/83533
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=426fb774b8949e182f5a678feaa3360f76cbc2b9
Submitter: Jenkins
Branch: master

commit 426fb774b8949e182f5a678feaa3360f76cbc2b9
Author: Thomas Herve <email address hidden>
Date: Thu Mar 27 19:47:57 2014 +0100

    Validate that resource type is a string

    Raises a proper validation error when a non-string resource type is passed.

    Change-Id: I1c84ee2bb1c7ff78802119e3321998b9d6487b2f
    Closes-Bug: #1298548

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: juno-1 → icehouse-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: icehouse-rc1 → 2014.1
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.