diff --git a/devstack/lib/ironic b/devstack/lib/ironic index da0b1421b9..8be18143cd 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -1204,7 +1204,7 @@ function enroll_nodes { if [[ -n "${IRONIC_NETWORK_INTERFACE}" ]]; then local n_id ironic node-set-maintenance $node_id true - n_id=$(ironic $ironic_api_version node-update $node_id add network_interface=$IRONIC_NETWORK_INTERFACE) + n_id=$(ironic $ironic_api_version node-update $node_id add network_interface=$IRONIC_NETWORK_INTERFACE | grep " uuid " | awk '{ print $4; }') die_if_not_set $LINENO n_id "Failed to update network interface for node" ironic node-set-maintenance $node_id false fi