nested stacks don't provide a nested link if there is no inner resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Angus Salkeld |
Bug Description
I ran into this in a functional test.
stack:
resources:
a_nested_stack:
resources: # <- none
now if you get "a_nested_stack" it's links don't have a "nested", this is because
the Stack class has a len() method and python defines it's boolean values like this:
"instances of user-defined classes, if the class defines a __nonzero__() or __len__() method, when that method returns the integer zero or bool value False. [1]"
so the following retruns false even though these is a valid nested stack
if stack.nested():
# never runs
see: https:/
We need to go though and make sure we are not using "if <stack object>" as meaning "if <stack object> is not None".
Changed in heat: | |
importance: | Undecided → Medium |
assignee: | nobody → Angus Salkeld (asalkeld) |
status: | New → Triaged |
Changed in heat: | |
milestone: | none → kilo-2 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-2 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/152071
Review: https:/