Can't skip constraint validation if the value is None
Bug #1444898 reported by
huangtianhua
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
huangtianhua |
Bug Description
The code as bellow, if the value is None, the constraint validation won't do:
def get_value(self, value, validate=False):
......
# property value resolves to None if resource it depends on is not
# created. So, if value is None skip constraint validation.
if value is not None and validate:
......
The bug/1339942 has been merged, and it fixes checks reference on another
resource and skips validation if resource is in INIT state.
So if there is no dependency, we need to do the constraint validation of None value.
Changed in heat: | |
assignee: | nobody → huangtianhua (huangtianhua) |
Changed in heat: | |
importance: | Undecided → Medium |
Changed in heat: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | liberty-1 → 5.0.0 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/174728
Review: https:/