Do the VM setup only when requested
After the recent change, we started calling create_bridge_and_vms no matter if it was requested by setting IRONIC_BAREMETAL_BASIC_OPS to True or not. This breaks the ironicclient functional job that does not need any vms created. Change-Id: Iabd2794fc0aad2ca752e04d87d53f641f26e9ffb Closes-bug: #1605194
This commit is contained in:
parent
7e9d1a8f71
commit
56d75b9654
@ -37,7 +37,7 @@ if is_service_enabled ir-api ir-cond; then
|
|||||||
# Initialize ironic
|
# Initialize ironic
|
||||||
init_ironic
|
init_ironic
|
||||||
|
|
||||||
if [[ "$IRONIC_IS_HARDWARE" == "False" ]]; then
|
if [[ "$IRONIC_BAREMETAL_BASIC_OPS" == "True" && "$IRONIC_IS_HARDWARE" == "False" ]]; then
|
||||||
echo_summary "Creating bridge and VMs"
|
echo_summary "Creating bridge and VMs"
|
||||||
create_bridge_and_vms
|
create_bridge_and_vms
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user