Exception schmeissen ist besser als sys.exit().

This commit is contained in:
niels.knacke+quietschenetchen@neuland-bfi.de 2020-07-07 11:38:46 +02:00
parent 7b3d4c672b
commit cf6d41c1a8

View file

@ -154,8 +154,7 @@ class DevopsTerraformBuild(DevopsBuild):
self.post_build()
self.print_terraform_command(tf)
if (return_code > 0):
sys.exit(return_code)
raise Exception(return_code, "Diff in Config found:", stderr)
def apply(self, auto_approve=False):
tf = self.init_client()