Merge "Exit listing validations with a proper return code" into stable/stein

This commit is contained in:
Zuul 2019-09-10 21:03:31 +00:00 committed by Gerrit Code Review
commit cb3ee02c49
1 changed files with 2 additions and 2 deletions

View File

@ -182,8 +182,8 @@ class TripleOValidatorList(command.Command):
{'validations': output})
print(out)
except Exception as e:
print(_("Validations listing finished with errors"))
print('Output: {}'.format(e))
raise RuntimeError(_("Validations listing finished with errors\n"
"Output: {}").format(e))
def take_action(self, parsed_args):
self._run_validator_list(parsed_args)