summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/utils
diff options
context:
space:
mode:
authorSteven Pisarski <s.pisarski@cablelabs.com>2017-11-06 15:04:22 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-06 15:04:22 +0000
commit15b7270542288263189abebcfa4f89c0245aaf8b (patch)
treeaa1514f2d958747ff637218c97f775a3590f8b51 /snaps/openstack/utils
parent092d58de391b9f8523e87142ffc60e040796607d (diff)
parent76c96d0c7095978e5d51ead79f1a85eff46b4143 (diff)
Merge "Added logging when a heat stack fails."
Diffstat (limited to 'snaps/openstack/utils')
-rw-r--r--snaps/openstack/utils/heat_utils.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/snaps/openstack/utils/heat_utils.py b/snaps/openstack/utils/heat_utils.py
index 02b4f7c..5b47280 100644
--- a/snaps/openstack/utils/heat_utils.py
+++ b/snaps/openstack/utils/heat_utils.py
@@ -23,8 +23,8 @@ from oslo_serialization import jsonutils
from snaps import file_utils
from snaps.domain.stack import Stack, Resource, Output
-from snaps.openstack.utils import keystone_utils, neutron_utils, nova_utils, \
- cinder_utils
+from snaps.openstack.utils import (
+ keystone_utils, neutron_utils, nova_utils, cinder_utils)
__author__ = 'spisarski'
@@ -155,10 +155,13 @@ def get_resources(heat_cli, stack, res_type=None):
out = list()
for os_resource in os_resources:
if ((res_type and os_resource.resource_type == res_type)
- or not res_type):
+ or not res_type):
out.append(Resource(
+ name=os_resource.resource_name,
resource_type=os_resource.resource_type,
- resource_id=os_resource.physical_resource_id))
+ resource_id=os_resource.physical_resource_id,
+ status=os_resource.resource_status,
+ status_reason=os_resource.resource_status_reason))
return out