Merge "Add logic to determine Ironic node is HW or not into install_ironic"

This commit is contained in:
Zuul
2019-07-09 16:01:01 +00:00
committed by Gerrit Code Review

View File

@@ -975,7 +975,7 @@ function install_ironic {
install_apache_wsgi
fi
if [[ "$IRONIC_BOOT_MODE" == "uefi" ]]; then
if [[ "$IRONIC_BOOT_MODE" == "uefi" && "$IRONIC_IS_HARDWARE" == "False" ]]; then
# Append the nvram configuration to libvirt if it's not present already
if ! sudo grep -q "^nvram" /etc/libvirt/qemu.conf; then