From 2fc55afe1ce54a826af928ace880de61e37c9217 Mon Sep 17 00:00:00 2001 From: Sofer Athlan-Guyot Date: Wed, 14 Apr 2021 18:06:35 +0200 Subject: [PATCH] Replace exception with LOG.info This is a backport of [1] but in between now and then the code in tripleo_validation was move back into python-tripleoclient[2] and the review in [1] was included. This means that we cannot have a review in master as it's already there. [1] https://review.opendev.org/c/openstack/tripleo-validations/+/777220 [2] https://review.opendev.org/c/openstack/python-tripleoclient/+/782776 Original commit message: Updated _run_validator_run to no longer raise an execption if/when a group is empty Using a log vs. exception is useful when we want to run an automated set of validations within our Update CI pipeline. Co-authored-by: Owen McGonagle Co-authored-by: Daniel Bengtsson Change-Id: I1046148da87712934184373a10fa3d2a46e620e4 --- tripleoclient/v1/tripleo_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleoclient/v1/tripleo_validator.py b/tripleoclient/v1/tripleo_validator.py index 9d996d13a..93fc2acbc 100644 --- a/tripleoclient/v1/tripleo_validator.py +++ b/tripleoclient/v1/tripleo_validator.py @@ -448,7 +448,7 @@ class TripleOValidatorRun(command.Command): print(t) else: msg = "No Validation has been run, please check your parameters." - raise exceptions.CommandError(msg) + LOG.info(_(msg)) if not parsed_args.static_inventory: LOG.debug(_('Removing static tripleo ansible inventory file'))