mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2026-11-17 02:25:41 +00:00
Properly get the container exit code
This commit is contained in:
1 parent
fd87ddc388
commit
4ebe16af14
1 file changed
+1
-1
@@ -57,9 +57,9 @@ def run(image: str = None, command: str = None, volumes: dict = None,
|
||||
fd.write('\n')
|
||||
logger.info(line)
|
||||
|
||||
container.wait()
|
||||
container.reload()
|
||||
logger.debug("Container ExitCode %s", container.attrs['State']['ExitCode'])
|
||||
container.stop()
|
||||
container.remove()
|
||||
|
||||
return container.attrs['State']['ExitCode']
|
||||
Reference in new issue
Block a user