X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fopenstack-cleanup-orphaned-ports.sh;h=c47228f8e910211c82494fe6a4eb3c353e4bf08a;hb=b55451a53da28d40c62de5cae462302a32fe4c31;hp=fac8d202c5c0b208918207fa80d254dfa1b75de8;hpb=58c9d68d07ab4a29cccc98448486a924ef3ad12a;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."