Merge "Exit listing validations with a proper return code"

This commit is contained in:
Zuul 2019-08-22 13:10:02 +00:00 committed by Gerrit Code Review
commit abf88a079f
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)