bifrost: destroy-env.sh: Clean dib images by default 73/48673/1
authorMarkos Chandras <mchandras@suse.de>
Mon, 11 Dec 2017 19:33:49 +0000 (19:33 +0000)
committerMarkos Chandras <mchandras@suse.de>
Mon, 11 Dec 2017 19:33:49 +0000 (19:33 +0000)
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 <mchandras@suse.de>
bifrost/scripts/destroy-env.sh

index 45d2b72..3ee6664 100755 (executable)
@@ -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