aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/vTC/apexlake/experimental_framework/heat_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'yardstick/vTC/apexlake/experimental_framework/heat_manager.py')
-rw-r--r--yardstick/vTC/apexlake/experimental_framework/heat_manager.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/yardstick/vTC/apexlake/experimental_framework/heat_manager.py b/yardstick/vTC/apexlake/experimental_framework/heat_manager.py
index 28c069f6c..ab3df5c38 100644
--- a/yardstick/vTC/apexlake/experimental_framework/heat_manager.py
+++ b/yardstick/vTC/apexlake/experimental_framework/heat_manager.py
@@ -76,9 +76,10 @@ class HeatManager:
:param stack_name: Name of the stack to be checked (type: str)
:return: (type: str)
"""
- for stack in self.heat.stacks.list():
- if stack.stack_name == stack_name:
- return stack.stack_status
+ if self.heat:
+ for stack in self.heat.stacks.list():
+ if stack.stack_name == stack_name:
+ return stack.stack_status
return 'NOT_FOUND'
def validate_heat_template(self, heat_template_file):