Skip to content

Commit 5c33cde

Browse files
committed
fix(contrib/openstack): fix awk field separator
this changes the way awk is used to separate fields to be consistent across awk versions. separates on '|' and use gsub to strip whitespace
1 parent e3a28b4 commit 5c33cde

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)