From: Peter Mikus Date: Wed, 24 Jan 2018 15:00:03 +0000 (+0000) Subject: FIX: Ignore removing dangling images if there aren't any X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=9803b11b7b5a6df4e81fbee1da6d141b0729fc20 FIX: Ignore removing dangling images if there aren't any Change-Id: I0be23e67cfdc54169b9787e90eede28b32406c8b Signed-off-by: Peter Mikus --- diff --git a/resources/tools/scripts/topo_container_copy.py b/resources/tools/scripts/topo_container_copy.py index 088b7a4386..83599b4444 100644 --- a/resources/tools/scripts/topo_container_copy.py +++ b/resources/tools/scripts/topo_container_copy.py @@ -129,7 +129,7 @@ def main(): # Remove images from Docker. cmd = "docker rmi $(sudo docker images -f 'dangling=true' -q)" - stdout = ssh_no_error(ssh, cmd, sudo=True) + stdout = ssh_ignore_error(ssh, cmd, sudo=True) print("###TI {}".format(stdout))