X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fopenstack-cleanup-orphaned-ports.sh;h=c25ba59f56377141fad61602145621c716aee312;hb=refs%2Ftags%2Fv0.81.1;hp=080b5907c50a839c6953b5237f35430d039538e0;hpb=5beb45586451cb772982de881cd09fd97360be87;p=releng%2Fglobal-jjb.git diff --git a/shell/openstack-cleanup-orphaned-ports.sh b/shell/openstack-cleanup-orphaned-ports.sh index 080b5907..c25ba59f 100644 --- a/shell/openstack-cleanup-orphaned-ports.sh +++ b/shell/openstack-cleanup-orphaned-ports.sh @@ -11,8 +11,15 @@ # Scans OpenStack for orphaned ports echo "---> Orphaned ports" +# shellcheck disable=SC1090 +source ~/lf-env.sh + os_cloud="${OS_CLOUD:-vex}" +lf-activate-venv --python python3 \ + python-heatclient \ + python-openstackclient + set -eux -o pipefail mapfile -t os_ports_ts < <(openstack --os-cloud "$os_cloud" port list \