container-puppet: SystemExit with RC 1 to actually error out

Raising SystemExit() isn't enough to stop the deployment, we also need
to provide a return code:
https://docs.python.org/3.7/library/exceptions.html#SystemExit

Default is None, so we didn't exit the right return code.

With that patch, if a container failed to be configured; we will raise
an error and actually exit(1).

Change-Id: Ie4ab2ffed5e04f87c866b0d4f3e5c702a98be5ad
This commit is contained in:
Emilien Macchi 2019-12-09 18:31:43 -05:00
parent fa99329115
commit 7d1cd360d8
1 changed files with 1 additions and 1 deletions

View File

@ -584,4 +584,4 @@ if __name__ == '__main__':
infile_processing(infiles=glob.glob(STARTUP_CONFIGS))
if not SUCCESS:
raise SystemExit()
raise SystemExit(1)