Activity log for bug #1250251

Date Who What changed Old value New value Message
2013-11-11 23:24:51 andrew plunk bug added bug
2013-11-11 23:24:59 andrew plunk heat: assignee andrew plunk (andrew-plunk)
2013-11-11 23:26:41 andrew plunk description problem: When using a number as a param value in a str_replace function within a hot template, an exception is thrown. 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 thrown: Traceback (most recent call last): File "heat/tests/test_hot.py", line 190, in test_str_replace_number tmpl.resolve_replace(snippet)) File "heat/engine/hot.py", line 256, in resolve_replace handle_str_replace, s) File "heat/engine/template.py", line 485, in _resolve return handle(recurse(v)) File "heat/engine/hot.py", line 251, in handle_str_replace text = text.replace(key, value) TypeError: expected a character buffer object Template snippet that would cause this bug: str_replace: template: | #!/bin/bash -v ... ./script/rails server -p %http_port% -d params: "%http_port%": 80 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/test_hot.py", line 190, in test_str_replace_number     tmpl.resolve_replace(snippet))   File "heat/engine/hot.py", line 256, in resolve_replace     handle_str_replace, s)   File "heat/engine/template.py", line 485, in _resolve     return handle(recurse(v))   File "heat/engine/hot.py", line 251, in handle_str_replace     text = text.replace(key, value) TypeError: expected a character buffer object Template snippet that would cause this bug: str_replace:           template: |             #!/bin/bash -v             ...             ./script/rails server -p %http_port% -d           params:             "%http_port%": 80
2013-11-11 23:29:31 OpenStack Infra heat: status New In Progress
2013-11-12 12:59:45 Steven Hardy heat: milestone icehouse-1
2013-11-12 13:33:55 OpenStack Infra heat: status In Progress Fix Committed
2013-12-04 09:54:27 Thierry Carrez heat: status Fix Committed Fix Released
2014-04-17 10:14:32 Thierry Carrez heat: milestone icehouse-1 2014.1