diff --git a/terraform_compliance/__main__.py b/terraform_compliance/__main__.py index f9afe44a..72c578d2 100644 --- a/terraform_compliance/__main__.py +++ b/terraform_compliance/__main__.py @@ -1,3 +1,5 @@ +import sys + from .main import cli -cli() +sys.exit(cli()) diff --git a/terraform_compliance/main.py b/terraform_compliance/main.py index 861e6863..fef47051 100644 --- a/terraform_compliance/main.py +++ b/terraform_compliance/main.py @@ -1,3 +1,4 @@ +import sys import os import shutil import atexit @@ -159,4 +160,4 @@ def cli(arghandling=ArgHandling(), argparser=ArgumentParser(prog=__app_name__, if __name__ == '__main__': - cli() + sys.exit(cli())