Exit 1 when container image prepare fails
Currently if an exception is thrown during the container image prepare, we log it but we still return 0. Anything that is running the command doesn't know it had issues. Change-Id: I87be8c3c7268399d86856eb47e801258d117a172 Closes-Bug: #1835837
This commit is contained in:
parent
fc6871ab7b
commit
4596f0f332
@ -135,3 +135,4 @@ if __name__ == '__main__':
|
||||
print(result)
|
||||
except Exception as e:
|
||||
log.exception("Image prepare failed: {}".format(e))
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user