Skip to content

Commit

Permalink
don't fail if podman acks up
Browse files Browse the repository at this point in the history
For whatever reason pruning/removal sometimes fails, don't fail the full
firmware build in those cases.

Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed Sep 30, 2023
1 parent 676d648 commit 9fba880
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions asu/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,11 @@ def run_container(
host_tar.close()
logging.debug(f"Closed {host_tar}")

container.remove(v=True)
podman.volumes.prune() # TODO: remove once v=True works
try:
container.remove(v=True)
podman.volumes.prune() # TODO: remove once v=True works
except Exception as e:
logging.warning(f"Failed to remove container: {e}")

return returncode, stdout, stderr

Expand Down

0 comments on commit 9fba880

Please sign in to comment.