From: helenyao Date: Thu, 22 Dec 2016 02:12:36 +0000 (-0500) Subject: Bugfix: fix the wrong extraction of image_id X-Git-Tag: danube.1.0~516^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=0a67d3606166bcb3ccb04dae3bddf24d3ce8efd2;p=releng.git Bugfix: fix the wrong extraction of image_id Change-Id: If1678725a1b417cf0a94265557a6d88aa7c416cb Signed-off-by: helenyao --- diff --git a/jjb/functest/functest-cleanup.sh b/jjb/functest/functest-cleanup.sh index f8140e058..b03d4778d 100755 --- a/jjb/functest/functest-cleanup.sh +++ b/jjb/functest/functest-cleanup.sh @@ -5,7 +5,7 @@ echo "Cleaning up docker containers/images..." FUNCTEST_IMAGE=opnfv/functest # Remove containers along with image opnfv/functest: -dangling_images=($(docker images -f "dangling=true" | grep $FUNCTEST_IMAGE | awk '{print $1}')) +dangling_images=($(docker images -f "dangling=true" | grep $FUNCTEST_IMAGE | awk '{print $3}')) if [[ -n ${dangling_images} ]]; then echo " Removing $FUNCTEST_IMAGE: images and their containers..." for image_id in "${dangling_images[@]}"; do