devstack: install python-dracclient if DRAC enabled

Change-Id: Ic1b132e25c13e0171ac1d5edf109a5412d76e56f
This commit is contained in:
Miles Gould 2017-01-25 18:22:09 +00:00
parent d31d984871
commit 0adb6dd1b9

View File

@ -527,6 +527,11 @@ function is_deployed_by_snmp {
return 1
}
function is_drac_enabled {
[[ -z "${IRONIC_ENABLED_DRIVERS##*_drac}" ]] && return 0
return 1
}
function is_glance_configuration_required {
is_deployed_by_agent || [[ "$IRONIC_CONFIGURE_GLANCE_WITH_SWIFT" == "True" ]] && return 0
return 1
@ -717,6 +722,10 @@ function install_ironic {
if is_deployed_by_snmp && [[ "$IRONIC_IS_HARDWARE" == "False" ]]; then
setup_virtualpdu
fi
if is_drac_enabled; then
pip_install python-dracclient
fi
}
# install_ironicclient() - Collect sources and prepare