After I9c8912a8fd596535589b207d7fc553b9d951d3fe this approach leads
to a failure and breaks (at least) ironic-inspector gate.
Change-Id: I19bb8ada9a6f42d375838cc88a376715918c2a3e
| ... | ... |
@@ -634,8 +634,10 @@ function enroll_nodes {
|
| 634 | 634 |
|
| 635 | 635 |
# First node created will be used for testing in ironic w/o glance |
| 636 | 636 |
# scenario, so we need to know its UUID. |
| 637 |
- local standalone_node_uuid |
|
| 638 |
- standalone_node_uuid=$([ $total_nodes -eq 0 ] && echo "--uuid $IRONIC_NODE_UUID") |
|
| 637 |
+ local standalone_node_uuid="" |
|
| 638 |
+ if [ $total_nodes -eq 0 ]; then |
|
| 639 |
+ standalone_node_uuid="--uuid $IRONIC_NODE_UUID" |
|
| 640 |
+ fi |
|
| 639 | 641 |
|
| 640 | 642 |
local node_id |
| 641 | 643 |
node_id=$(ironic node-create $standalone_node_uuid\ |