Exception schmeissen ist besser als sys.exit().
This commit is contained in:
parent
7b3d4c672b
commit
cf6d41c1a8
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue