summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/utils/heat_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'snaps/openstack/utils/heat_utils.py')
-rw-r--r--snaps/openstack/utils/heat_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/snaps/openstack/utils/heat_utils.py b/snaps/openstack/utils/heat_utils.py
index 3d62fdf..b38a7b9 100644
--- a/snaps/openstack/utils/heat_utils.py
+++ b/snaps/openstack/utils/heat_utils.py
@@ -68,7 +68,7 @@ def get_stack(heat_cli, stack_settings=None, stack_name=None):
stacks = heat_cli.stacks.list(**stack_filter)
for stack in stacks:
return Stack(
- name=stack.identifier, stack_id=stack.id,
+ name=stack.stack_name, stack_id=stack.id,
stack_project_id=stack.stack_user_project_id,
status=stack.stack_status,
status_reason=stack.stack_status_reason)
@@ -83,7 +83,7 @@ def get_stack_by_id(heat_cli, stack_id):
"""
stack = heat_cli.stacks.get(stack_id)
return Stack(
- name=stack.identifier, stack_id=stack.id,
+ name=stack.stack_name, stack_id=stack.id,
stack_project_id=stack.stack_user_project_id,
status=stack.stack_status,
status_reason=stack.stack_status_reason)