Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update regexp in lf-infra-ship-logs macro
[releng/global-jjb.git]
/
shell
/
openstack-cleanup-orphaned-ports.sh
diff --git
a/shell/openstack-cleanup-orphaned-ports.sh
b/shell/openstack-cleanup-orphaned-ports.sh
index
fac8d20
..
c47228f
100644
(file)
--- 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
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."
if [ ${#os_ports[@]} -eq 0 ]; then
echo "No orphaned ports found."