X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fodl-openstack-cleanup-stale-volumes.sh;h=3745eb25349b2974d1f0f65e05d044da6a46d19d;hb=d6395bc130d337c2fba97d770dcd27a86eaf7a1c;hp=433aecf2cc45aeb33d47e2005160d2f1544b1f83;hpb=c4f5571795775e56ec9bef76c40247c4c34cd755;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