X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fodl-openstack-cleanup-orphaned-nodes.sh;h=df598b473d83eba76ae30b3803f28df1afadfe3d;hb=6181ae15d4dc986b88a03d1d39fce38f3101bc7a;hp=c3c6b35a24e23c25b85e77ff60dd2851ee8d2dc1;hpb=c4f5571795775e56ec9bef76c40247c4c34cd755;p=releng%2Fbuilder.git diff --git a/jjb/odl-openstack-cleanup-orphaned-nodes.sh b/jjb/odl-openstack-cleanup-orphaned-nodes.sh index c3c6b35a2..df598b473 100644 --- a/jjb/odl-openstack-cleanup-orphaned-nodes.sh +++ b/jjb/odl-openstack-cleanup-orphaned-nodes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 - 2018 The Linux Foundation and others. @@ -43,9 +43,6 @@ minion_in_jenkins() { # Fetch server list before fetching active minions to minimize race condition # where we might be trying to delete servers while jobs are trying to start -# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091 -source "/tmp/v/openstack/bin/activate" - # We purposely need word splitting here to create the OS_SERVERS array. # shellcheck disable=SC2207 mapfile -t OS_SERVERS < <(openstack server list -f value -c "Name" | grep -E 'prd|snd') @@ -69,5 +66,3 @@ for server in "${OS_SERVERS[@]}"; do server remove --minutes 15 "$server" fi done - -deactivate