Set 'nested_depth=2' when calling heat.resources.list
Since Heat bug[1] have already been fixed, now we can set
'nested_depth=2' when calling heat().resources.list(), see
the TODO comment inline[2].
This is a follow up patch for patch 318416, see[3] for detail.
[1]https://bugs.launchpad.net/heat/+bug/1588130
[2]678f74c12e/magnum/api/controllers/v1/bay.py (L283)
[3]https://review.openstack.org/#/c/318416/
Change-Id: I7d9712510ace9de9c965d24583f8d31961114b16
This commit is contained in:
parent
a482ce8179
commit
c01420e29a
|
@ -280,11 +280,8 @@ class BaysController(rest.RestController):
|
|||
osc = clients.OpenStackClients(context)
|
||||
filters = {'status': 'FAILED'}
|
||||
try:
|
||||
# TODO(yuywz): We should set 'nested_depth=2' when
|
||||
# calling heat().resources.list() after Heat bug
|
||||
# https://bugs.launchpad.net/heat/+bug/1588130 fixed.
|
||||
failed_resources = osc.heat().resources.list(
|
||||
bay.stack_id, filters=filters)
|
||||
bay.stack_id, nested_depth=2, filters=filters)
|
||||
except Exception as e:
|
||||
failed_resources = []
|
||||
LOG.warning(_LW("Failed to retrieve failed resources for "
|
||||
|
|
Loading…
Reference in New Issue