Get rid of Mistral for running Validations by Groups

The CLI doesn't depend on Mistral for running Validations anymore.

Change-Id: If7178f9b8567a5224c1b4dd7fa3e8647b83c8ef0
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
(cherry picked from commit db6aa7b4f3)
This commit is contained in:
Gael Chamoulaud 2019-11-05 14:29:57 +01:00
parent 97d1e93d4b
commit ea64bef8c2
No known key found for this signature in database
GPG Key ID: 00776A4BA7F4B301
1 changed files with 2 additions and 7 deletions

View File

@ -328,7 +328,6 @@ class TripleOValidatorRun(command.Command):
return rc, output
def _run_validator_run(self, parsed_args):
clients = self.app.client_manager
LOG = logging.getLogger(__name__ + ".ValidationsRunAnsible")
playbooks = []
extra_vars_input = {}
@ -340,14 +339,10 @@ class TripleOValidatorRun(command.Command):
extra_vars_input = parsed_args.extra_vars_file
if parsed_args.group:
workflow_input = {
"group_names": parsed_args.group
}
LOG.debug(_('Getting the validations list by group'))
try:
output = validations.list_validations(
clients, workflow_input)
output = oooutils.parse_all_validations_on_disk(
constants.ANSIBLE_VALIDATION_DIR, parsed_args.group)
for val in output:
playbooks.append(val.get('id') + '.yaml')
except Exception as e: