From 3d9a22a54867f84758d0bda0b20fdf21e6e98872 Mon Sep 17 00:00:00 2001 From: Kristine Bujold Date: Mon, 2 Dec 2019 11:55:22 -0500 Subject: [PATCH] Fix issue with calls to create-host-overrides Backup and upgrade-k8s-networking were not hitting proper failure path when create-host-overrides was throwing an exception. Story: 2006590 Task: 36892 Change-Id: I4587a4462cbca377ed76ebdff939a10cb4a12910 Signed-off-by: Kristine Bujold --- sysinv/sysinv/sysinv/sysinv/cmd/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sysinv/sysinv/sysinv/sysinv/cmd/utils.py b/sysinv/sysinv/sysinv/sysinv/cmd/utils.py index 04424243ec..ecd6e386ea 100644 --- a/sysinv/sysinv/sysinv/sysinv/cmd/utils.py +++ b/sysinv/sysinv/sysinv/sysinv/cmd/utils.py @@ -130,6 +130,7 @@ def create_host_overrides(filename): yaml.safe_dump(data, outfile, default_flow_style=False) except Exception as e: LOG.error("Error with create_host_overrides: %s", e) + sys.exit(1) def add_action_parsers(subparsers):