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
diff --git a/lib/ironic b/lib/ironic
index 61eba6f..74e2f93 100644
--- a/lib/ironic
+++ b/lib/ironic
@@ -634,8 +634,10 @@
# First node created will be used for testing in ironic w/o glance
# scenario, so we need to know its UUID.
- local standalone_node_uuid
- standalone_node_uuid=$([ $total_nodes -eq 0 ] && echo "--uuid $IRONIC_NODE_UUID")
+ local standalone_node_uuid=""
+ if [ $total_nodes -eq 0 ]; then
+ standalone_node_uuid="--uuid $IRONIC_NODE_UUID"
+ fi
local node_id
node_id=$(ironic node-create $standalone_node_uuid\