Merge "Remove bgpcep carbon jobs"
[releng/builder.git] / jjb / odl-openstack-cleanup-stale-volumes.sh
index df1995b7dcf7d31cc0b0e43e90649a5feafe44a2..433aecf2cc45aeb33d47e2005160d2f1544b1f83 100644 (file)
@@ -13,7 +13,6 @@
 # shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
 source "/tmp/v/openstack/bin/activate"
 mapfile -t os_volumes < <(openstack volume list -f value -c ID --status Available)
-deactivate
 
 echo "---> Orphaned volumes"
 if [ ${#os_volumes[@]} -eq 0 ]; then
@@ -24,4 +23,5 @@ else
         lftools openstack --os-cloud vex volume remove --minutes 15 "$volume"
     done
 fi
+
 deactivate