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
0503b7e36f
commit
c5795adc8c
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user