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:
parent
fa99329115
commit
7d1cd360d8
|
@ -584,4 +584,4 @@ if __name__ == '__main__':
|
|||
infile_processing(infiles=glob.glob(STARTUP_CONFIGS))
|
||||
|
||||
if not SUCCESS:
|
||||
raise SystemExit()
|
||||
raise SystemExit(1)
|
||||
|
|
Loading…
Reference in New Issue