Merge "Correct log the node UUID on failure"

This commit is contained in:
Jenkins 2016-11-01 22:25:03 +00:00 committed by Gerrit Code Review
commit 75e24246ac

View File

@ -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