Merge "Fix and avoid an erroneous heat API call"

This commit is contained in:
Zuul 2020-11-06 02:44:27 +00:00 committed by Gerrit Code Review
commit f37f0ddfca

View File

@ -415,6 +415,9 @@ class FenixPlugin(object):
return attrs
instances = []
if not vnf_dict['instance_id']:
return instances
client = self._get_openstack_clients(context, vnf_dict)
resources = client.heat.resources.list(vnf_dict['instance_id'],
nested_depth=2)