X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fodl-openstack-cleanup-stale-volumes.sh;h=3745eb25349b2974d1f0f65e05d044da6a46d19d;hb=f2e91f20e866f008ac843aea62d266050fe73eaf;hp=433aecf2cc45aeb33d47e2005160d2f1544b1f83;hpb=07568191388cf45a9525d473a9d59df7c177e78e;p=releng%2Fbuilder.git diff --git a/jjb/odl-openstack-cleanup-stale-volumes.sh b/jjb/odl-openstack-cleanup-stale-volumes.sh index 433aecf2c..3745eb253 100644 --- a/jjb/odl-openstack-cleanup-stale-volumes.sh +++ b/jjb/odl-openstack-cleanup-stale-volumes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2018 The Linux Foundation and others. @@ -10,8 +10,6 @@ ############################################################################## # Scans OpenStack for orphaned volumes -# 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) echo "---> Orphaned volumes" @@ -23,5 +21,3 @@ else lftools openstack --os-cloud vex volume remove --minutes 15 "$volume" done fi - -deactivate