Skip to content

Commit 10d07d4

Browse files
committed
post/patching will now exit on schema errors
1 parent 7bfa688 commit 10d07d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pipeline_utils/pipeline_deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ def _post_patch_json(self, data_json, type):
174174
else:
175175
ff_utils.post_metadata(data_json, type, key=self.ff_key)
176176
except Exception as E:
177-
# this will skip and report errors during patching and posting
177+
# this will exit and report errors during patching and posting
178178
logger.info('> FAILED PORTAL VALIDATION')
179179
logger.info(E)
180-
pass
180+
sys.exit('\nExiting...')
181181

182182
logger.info('> Posted %s' % data_json['aliases'][0])
183183

0 commit comments

Comments
 (0)