hot string replace does not handle numbers as parameter values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
andrew plunk |
Bug Description
problem:
When using a number as a param value in a str_replace function within a hot template, an exception is raised.
expected:
When using a number as a param value in the str_replace function, hot should handle the conversion to a string gracefully.
actual:
If you try to use a number as a parameter value to str_replace the following exception is raised:
Traceback (most recent call last):
File "heat/tests/
tmpl.
File "heat/engine/
handle_
File "heat/engine/
return handle(recurse(v))
File "heat/engine/
text = text.replace(key, value)
TypeError: expected a character buffer object
Template snippet that would cause this bug:
str_replace:
template: |
...
params:
Changed in heat: | |
assignee: | nobody → andrew plunk (andrew-plunk) |
description: | updated |
Changed in heat: | |
milestone: | none → icehouse-1 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | icehouse-1 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/55927
Review: https:/