Merge "Fix validations listing when filtering by group(s)" into stable/ussuri

This commit is contained in:
Zuul 2021-05-20 17:38:49 +00:00 committed by Gerrit Code Review
commit 44bff65e2f
1 changed files with 4 additions and 3 deletions

View File

@ -212,9 +212,10 @@ class TripleOValidatorList(command.Lister):
try: try:
v_consts.DEFAULT_VALIDATIONS_BASEDIR = constants.\ v_consts.DEFAULT_VALIDATIONS_BASEDIR = constants.\
DEFAULT_VALIDATIONS_BASEDIR DEFAULT_VALIDATIONS_BASEDIR
actions = ValidationActions(constants.ANSIBLE_VALIDATION_DIR, actions = ValidationActions(
parsed_args.group) validation_path=constants.ANSIBLE_VALIDATION_DIR
return actions.list_validations() )
return actions.list_validations(parsed_args.group)
except Exception as e: except Exception as e:
raise RuntimeError(_("Validations listing finished with errors\n" raise RuntimeError(_("Validations listing finished with errors\n"
"Output: {}").format(e)) "Output: {}").format(e))