From 10d07d4deabea296578d471203f6e5a8639cc2c0 Mon Sep 17 00:00:00 2001 From: Michele Berselli Date: Mon, 23 Sep 2024 12:26:14 +0200 Subject: [PATCH] post/patching will now exit on schema errors --- pipeline_utils/pipeline_deploy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipeline_utils/pipeline_deploy.py b/pipeline_utils/pipeline_deploy.py index deffeb4..082a5cd 100644 --- a/pipeline_utils/pipeline_deploy.py +++ b/pipeline_utils/pipeline_deploy.py @@ -174,10 +174,10 @@ def _post_patch_json(self, data_json, type): else: ff_utils.post_metadata(data_json, type, key=self.ff_key) except Exception as E: - # this will skip and report errors during patching and posting + # this will exit and report errors during patching and posting logger.info('> FAILED PORTAL VALIDATION') logger.info(E) - pass + sys.exit('\nExiting...') logger.info('> Posted %s' % data_json['aliases'][0])