Auto enable the deploy driver
This will reduce misconfiguration as if the user forgets to include its driver in the enabled driver, the stack will fail. Change-Id: If5275a93432ffcac350e8bffa1ad4a2b126eea56 Partial-bug: #1633567
This commit is contained in:
@@ -232,6 +232,11 @@ fi
|
||||
# ``*_pxe_oneview`` and ``pxe_drac``
|
||||
IRONIC_DEPLOY_DRIVER=${IRONIC_DEPLOY_DRIVER:-pxe_ssh}
|
||||
|
||||
# If the requested driver is not yet enable, enable it, if it is not it will fail anyway
|
||||
if [[ -z "$(echo ${IRONIC_ENABLED_DRIVERS} | grep -w ${IRONIC_DEPLOY_DRIVER})" ]]; then
|
||||
IRONIC_ENABLED_DRIVERS=${IRONIC_ENABLED_DRIVERS},${IRONIC_DEPLOY_DRIVER}
|
||||
fi
|
||||
|
||||
# Support entry points installation of console scripts
|
||||
IRONIC_BIN_DIR=$(get_python_exec_prefix)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user