Number properties don't cast strings to numbers
Bug #1241276 reported by
Christopher Armstrong
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Christopher Armstrong | ||
Havana |
Fix Released
|
Medium
|
Steve Baker |
Bug Description
It seems that there is the _intent_ to convert strings to numbers, and they validate successfully, but in practice the conversion doesn't happen.
The bug is pretty obvious:
def _validate_
if value is None:
value = self.has_default() and self.default() or 0
num = self.str_
return value
This should be returning 'num', not 'value'. Patch forthcoming.
Changed in heat: | |
assignee: | nobody → Christopher Armstrong (radix) |
tags: | added: havana-backport-potential |
Changed in heat: | |
importance: | Undecided → Medium |
milestone: | none → icehouse-1 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | icehouse-1 → 2014.1 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/52564
Review: https:/