From 06184adb7a880be1f855554c45f51d070c7dd72b Mon Sep 17 00:00:00 2001 From: ramishra Date: Thu, 15 Jul 2021 17:14:12 +0530 Subject: [PATCH] Fix get_deployment_status() for ephemeral heat With ephemeral heat there would be no stack, so there is no point checking for it. Change-Id: I0162a0ab86689933f5935af6ee9e343bca6e8c54 (cherry picked from commit 0cde1bff4d101e9d5dc9657b1cf4f95bb89f6830) --- tripleoclient/workflows/deployment.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tripleoclient/workflows/deployment.py b/tripleoclient/workflows/deployment.py index f6cab6d39..f6fc2d487 100644 --- a/tripleoclient/workflows/deployment.py +++ b/tripleoclient/workflows/deployment.py @@ -17,7 +17,6 @@ import shutil import yaml from heatclient.common import event_utils -from heatclient import exc as heat_exc from openstackclient import shell from tripleo_common.utils import heat as tc_heat_utils from tripleo_common.utils import overcloudrc as rc_utils @@ -522,12 +521,6 @@ def get_horizon_url(stack, verbosity=0, def get_deployment_status(clients, stack_name, working_dir): """Return current deployment status.""" - - try: - clients.orchestration.stacks.get(stack_name) - except heat_exc.HTTPNotFound: - return None - try: status_yaml = utils.get_status_yaml(stack_name, working_dir) with open(status_yaml, 'r') as status_stream: