Skip to content

Commit

Permalink
Merge pull request #6715 from sapcc/ironic_disable_virtual_media_boot…
Browse files Browse the repository at this point in the history
…_for_bios

[ironic] Disable virtual media for now on non-UEFI nodes
  • Loading branch information
sandzwerg committed Jun 20, 2024
2 parents f5df82b + 64d16ed commit 1e2dfaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openstack/ironic/py/ironic-node-update.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@ def filtered_patch(node, patch):
continue

manufacturer = (node.properties.get("manufacturer") or "").split(" ")[0].lower()
uefi = "boot_mode:uefi" in node.properties.get("capabilities", "")

if manufacturer != "dell" or node.resource_class == "zh2mlx1.large":

if (not uefi
or manufacturer != "dell"
or node.resource_class == "zh2mlx1.large"):
# zh2mlx1.large is too old
patch = patch_ipxe
else:
Expand Down

0 comments on commit 1e2dfaa

Please sign in to comment.