Skip to content

Commit 0abf095

Browse files
committed
Merge pull request #4505 from jfchevrette/fix-awk-whitespace
Fix awk field separator not working on non-GNU awk
2 parents e3a28b4 + 5c33cde commit 0abf095

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contrib/openstack/provision-openstack-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if [ -z "$OS_AUTH_URL" ]; then
4545
fi
4646

4747
if neutron net-list|grep -q $DEIS_NETWORK &>/dev/null; then
48-
NETWORK_ID=$(neutron net-list | grep $DEIS_NETWORK | awk -F'| ' '{print $2}')
48+
NETWORK_ID=$(neutron net-list | grep $DEIS_NETWORK | awk -F'|' '{gsub(/ /, "", $0); print $2}')
4949
else
5050
echo_yellow "Creating deis private network..."
5151
CIDR=${DEIS_CIDR:-10.21.12.0/24}

0 commit comments

Comments
 (0)