Undesired rounding float parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
Sergey Kraynev |
Bug Description
I try to preview stack with template [1] with couple changes:
- I added Cooldown parameter with Number type and Default float value 8.9 (it should be not unicode and not string).
- I added Cooldown property to WebServerGroup resource, that reference on parameter Cooldown.
When I try to create this stack I will get stack, where resource WebServerGroup has property cooldown equal to 8.
The problem is here [2]. It happens because Default value has float type, instead of string (when we pass this parameter through CLI). For avoiding this problem will be better to use str_to_num method of Schema class.
[1] https:/
[2] https:/
Changed in heat: | |
assignee: | nobody → Sergey Kraynev (skraynev) |
Changed in heat: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | juno-1 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/95761
Review: https:/