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) <gchamoul@redhat.com> Change-Id: I5152ad37c7e47a46eb23c3c792b31b2bf3298368
This commit is contained in:
parent
592faedfd7
commit
2bff6e43a9
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user