Skip to content

Commit c3a0bf4

Browse files
Merge pull request #156 from Nordix/fix-ip-mael
Fix the IP address parsing in ironic-common.sh
2 parents 903a7e0 + 00aa4a6 commit c3a0bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ironic-common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function wait_for_interface_or_ip() {
1414
else
1515
until [ ! -z "${IRONIC_IP}" ]; do
1616
echo "Waiting for ${PROVISIONING_INTERFACE} interface to be configured"
17-
export IRONIC_IP=$(ip -br add show scope global up dev "${PROVISIONING_INTERFACE}" | awk '{print $3; exit}')
17+
export IRONIC_IP=$(ip -br add show scope global up dev "${PROVISIONING_INTERFACE}" | awk '{print $3}' | sed -e 's%/.*%%' | head -n 1)
1818
sleep 1
1919
done
2020
fi

0 commit comments

Comments
 (0)