when set template use non-english resource_name and execute
"heat -v resource-list $stack_id". KeyError will occur because
heat can not encode it correctly. This patch will implement
a process to encode the resource_name.
The patch use a new module (strutils.py) taken from
oslo-incubator in order to use safe_encode() and
safe_decode(), and this module is useful for future
patchs.
Reviewed: https:/ /review. openstack. org/56165 github. com/openstack/ heat/commit/ 89f2a206343abff 142fb10d1640ce3 eac654f996
Committed: http://
Submitter: Jenkins
Branch: master
commit 89f2a206343abff 142fb10d1640ce3 eac654f996
Author: chenxiao <email address hidden>
Date: Wed Nov 13 16:21:21 2013 +0800
Fixes Error when contain Non-ascii in template
when set template use non-english resource_name and execute
"heat -v resource-list $stack_id". KeyError will occur because
heat can not encode it correctly. This patch will implement
a process to encode the resource_name.
The patch use a new module (strutils.py) taken from
oslo-incubator in order to use safe_encode() and
safe_decode(), and this module is useful for future
patchs.
Change-Id: Idddda20d96bca3 2cb4df94ede31b4 0f7141e3afe
Closes-Bug: #1249238