Wrong error handling in Outputs section in CFN templates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
Peter Razumovsky |
Bug Description
1) Output empty body
1.
HeatTemplateFor
Resources:
Resource:
Type: OS::Nova:
Outputs:
Output:
2.
$ heat stack-create test -f test.yaml
ERROR: 'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/local/
incoming.
File "/usr/local/
return self._do_
File "/usr/local/
result = getattr(endpoint, method)(ctxt, **new_args)
File "/usr/local/
return f(*args, **kwargs)
File "/opt/stack/
return func(self, ctx, *args, **kwargs)
File "/opt/stack/
owner_id)
File "/opt/stack/
stack.
File "/usr/local/
return f(*args, **kwargs)
File "/opt/stack/
snippet = val.get('Value', '')
AttributeError: 'NoneType' object has no attribute 'get'
2) String in output body instead of mapping
1.
HeatTemplateFo
Resources:
Resource:
Type: OS::Nova:
Outputs:
Output:
Wrong body, sorry!
2.
$ heat stack-create test -f test.yaml
ERROR: 'unicode' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/local/
incoming.
File "/usr/local/
return self._do_
File "/usr/local/
result = getattr(endpoint, method)(ctxt, **new_args)
File "/usr/local/
return f(*args, **kwargs)
File "/opt/stack/
return func(self, ctx, *args, **kwargs)
File "/opt/stack/
updated_
File "/usr/local/
return f(*args, **kwargs)
File "/opt/stack/
snippet = val.get('Value', '')
AttributeError: 'unicode' object has no attribute 'get'
Changed in heat: | |
assignee: | nobody → Razumovsky Peter (prazumovsky) |
Changed in heat: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/131222
Review: https:/