From 5ed8af671328a0f9824bb33f9c637cc779a83ae3 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Thu, 15 Oct 2015 14:30:50 +0200 Subject: [PATCH] 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 --- lib/ironic | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ironic b/lib/ironic index 61eba6fcf3..74e2f931ff 100644 --- a/lib/ironic +++ b/lib/ironic @@ -634,8 +634,10 @@ function enroll_nodes { # 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\