Browse Source

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

changes/78/681878/1
Zuul 1 week ago
parent
commit
cb3ee02c49
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tripleoclient/v1/tripleo_validator.py

+ 2
- 2
tripleoclient/v1/tripleo_validator.py View File

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

Loading…
Cancel
Save