Merge "Don't use jq in rally containers"

This commit is contained in:
Zuul 2020-08-12 01:00:43 +00:00 committed by Gerrit Code Review
commit bb6a00f116

View File

@ -842,7 +842,7 @@ conf:
openstack router unset --external-gateway $ROUTER openstack router unset --external-gateway $ROUTER
openstack router set --disable --no-ha $ROUTER openstack router set --disable --no-ha $ROUTER
SUBNS=$(openstack router show $ROUTER -c interfaces_info --format=value | jq .[].subnet_id | tr -d '\r\"') SUBNS=$(openstack router show $ROUTER -c interfaces_info --format=value | python -m json.tool | grep -oP '(?<="subnet_id": ")[a-f0-9\-]{36}(?=")' | sort | uniq)
for SUBN in $SUBNS for SUBN in $SUBNS
do do
openstack router remove subnet $ROUTER $SUBN openstack router remove subnet $ROUTER $SUBN