From 5b4bb45ebd86e82df0be6d993cc1781ccb401675 Mon Sep 17 00:00:00 2001 From: "Gael Chamoulaud (Strider)" Date: Wed, 12 May 2021 14:37:43 +0200 Subject: [PATCH] Fix validations listing when filtering by group(s) When running `openstack tripleo validator list --group pre-update` command, it returns all the validations catalog and the filtering by group(s) doesn't work. This patch fixes this behavior by actually filtering. Signed-off-by: Gael Chamoulaud (Strider) Change-Id: I5152ad37c7e47a46eb23c3c792b31b2bf3298368 --- tripleoclient/v1/tripleo_validator.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tripleoclient/v1/tripleo_validator.py b/tripleoclient/v1/tripleo_validator.py index 045a75234..7f6ad4616 100644 --- a/tripleoclient/v1/tripleo_validator.py +++ b/tripleoclient/v1/tripleo_validator.py @@ -212,9 +212,10 @@ class TripleOValidatorList(command.Lister): try: v_consts.DEFAULT_VALIDATIONS_BASEDIR = constants.\ DEFAULT_VALIDATIONS_BASEDIR - actions = ValidationActions(constants.ANSIBLE_VALIDATION_DIR, - parsed_args.group) - return actions.list_validations() + actions = ValidationActions( + validation_path=constants.ANSIBLE_VALIDATION_DIR + ) + return actions.list_validations(parsed_args.group) except Exception as e: raise RuntimeError(_("Validations listing finished with errors\n" "Output: {}").format(e))