Merge "Fix get_deployment_status()"

This commit is contained in:
Zuul 2021-02-03 18:16:44 +00:00 committed by Gerrit Code Review
commit c7f17da457
1 changed files with 2 additions and 1 deletions

View File

@ -551,7 +551,8 @@ def get_deployment_status(clients, stack_name):
try:
status_yaml = utils.get_status_yaml(stack_name)
return yaml.safe_load(status_yaml)['deployment_status']
with open(status_yaml, 'r') as status_stream:
return yaml.safe_load(status_stream)['deployment_status']
except Exception:
return None