From: Markos Chandras Date: Mon, 11 Dec 2017 19:33:49 +0000 (+0000) Subject: bifrost: destroy-env.sh: Clean dib images by default X-Git-Tag: 6.0.0~216^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=b35cbb57db32903e8dc3387870e3f388adc9beac;p=releng-xci.git bifrost: destroy-env.sh: Clean dib images by default The destroy-env.sh script is meant to clean the entire environment including the dib images that were built in a previous run. However, this step was only executed if requested exclicitly leaving old artifacts behind. As such, lets switch the default value in order to remove these images as expected. Change-Id: If3b91a621df50931ef3d666737cbc3bbea5d34b9 Signed-off-by: Markos Chandras --- diff --git a/bifrost/scripts/destroy-env.sh b/bifrost/scripts/destroy-env.sh index 45d2b72e..3ee66642 100755 --- a/bifrost/scripts/destroy-env.sh +++ b/bifrost/scripts/destroy-env.sh @@ -53,8 +53,8 @@ echo "removing leases" echo "removing logs" rm -rf /var/log/libvirt/baremetal_logs/* -# clean up dib images only if requested explicitly -CLEAN_DIB_IMAGES=${CLEAN_DIB_IMAGES:-false} +# clean up dib images by default +CLEAN_DIB_IMAGES=${CLEAN_DIB_IMAGES:-true} if [ $CLEAN_DIB_IMAGES = "true" ]; then rm -rf /httpboot /tftpboot