Fix devstack failure due to incorrect variable assignment

After I9c8912a8fd596535589b207d7fc553b9d951d3fe this approach leads
to a failure and breaks (at least) ironic-inspector gate.

Change-Id: I19bb8ada9a6f42d375838cc88a376715918c2a3e
This commit is contained in:
Dmitry Tantsur 2015-10-15 14:30:50 +02:00
parent 8ce00acf8a
commit 5ed8af6713

View File

@ -634,8 +634,10 @@ function enroll_nodes {
# First node created will be used for testing in ironic w/o glance # First node created will be used for testing in ironic w/o glance
# scenario, so we need to know its UUID. # scenario, so we need to know its UUID.
local standalone_node_uuid local standalone_node_uuid=""
standalone_node_uuid=$([ $total_nodes -eq 0 ] && echo "--uuid $IRONIC_NODE_UUID") if [ $total_nodes -eq 0 ]; then
standalone_node_uuid="--uuid $IRONIC_NODE_UUID"
fi
local node_id local node_id
node_id=$(ironic node-create $standalone_node_uuid\ node_id=$(ironic node-create $standalone_node_uuid\