Merge "Correct log the node UUID on failure"
This commit is contained in:
commit
75e24246ac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user