Merge "Install sushy if redfish is a hardware type"

This commit is contained in:
Zuul
2019-08-16 20:43:01 +00:00
committed by Gerrit Code Review

View File

@@ -713,6 +713,11 @@ function is_ansible_deploy_enabled {
return 1 return 1
} }
function is_redfish_enabled {
[[ -z "${IRONIC_ENABLED_HARDWARE_TYPES%%*redfish*}" ]] && return 0
return 1
}
function is_ansible_with_tinyipa { function is_ansible_with_tinyipa {
# NOTE(pas-ha) we support rebuilding the ramdisk to include (generated) SSH keys # NOTE(pas-ha) we support rebuilding the ramdisk to include (generated) SSH keys
# as needed for ansible deploy interface only for TinyIPA ramdisks for now # as needed for ansible deploy interface only for TinyIPA ramdisks for now
@@ -1032,7 +1037,7 @@ function install_ironic {
restart_libvirt restart_libvirt
fi fi
if is_deployed_by_redfish; then if is_redfish_enabled || is_deployed_by_redfish; then
setup_sushy setup_sushy
fi fi