We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 903a7e0 + 00aa4a6 commit c3a0bf4Copy full SHA for c3a0bf4
ironic-common.sh
@@ -14,7 +14,7 @@ function wait_for_interface_or_ip() {
14
else
15
until [ ! -z "${IRONIC_IP}" ]; do
16
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}')
+ export IRONIC_IP=$(ip -br add show scope global up dev "${PROVISIONING_INTERFACE}" | awk '{print $3}' | sed -e 's%/.*%%' | head -n 1)
18
sleep 1
19
done
20
fi
0 commit comments