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 0cde1bff4d)
This commit is contained in:
ramishra
2021-07-15 17:14:12 +05:30
committed by Rabi Mishra
parent 7f6ac6421d
commit 06184adb7a

View File

@@ -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: