From b35cbb57db32903e8dc3387870e3f388adc9beac Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 11 Dec 2017 19:33:49 +0000 Subject: 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 --- bifrost/scripts/destroy-env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bifrost') 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 -- cgit 1.2.3-korg