X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fopenstack-cleanup-orphaned-ports.sh;h=c47228f8e910211c82494fe6a4eb3c353e4bf08a;hb=e1a8dc64cfe10360ebdcadd28806adf800760ce7;hp=fac8d202c5c0b208918207fa80d254dfa1b75de8;hpb=59ef2e78b9af7977117c06f154ed5faf92adff6f;p=releng%2Fglobal-jjb.git diff --git a/shell/openstack-cleanup-orphaned-ports.sh b/shell/openstack-cleanup-orphaned-ports.sh index fac8d202..c47228f8 100644 --- a/shell/openstack-cleanup-orphaned-ports.sh +++ b/shell/openstack-cleanup-orphaned-ports.sh @@ -15,7 +15,7 @@ os_cloud="${OS_CLOUD:-vex}" set -eux -o pipefail -mapfile -t os_ports < <(openstack --os-cloud "$os_cloud" port list -f value -c ID -c status | egrep DOWN | awk '{print $1}') +mapfile -t os_ports < <(openstack --os-cloud "$os_cloud" port list -f value -c ID -c status | grep -E DOWN | awk '{print $1}') if [ ${#os_ports[@]} -eq 0 ]; then echo "No orphaned ports found."