summaryrefslogtreecommitdiff
path: root/ironic
diff options
context:
space:
mode:
authorLin Tan <lin.tan@intel.com>2015-06-12 14:08:29 +0800
committerLin Tan <lin.tan@intel.com>2015-06-12 14:35:59 +0800
commitba542223fb4730f613ebd94e9bdf164ed19ca7e3 (patch)
treeb268056c221aa67e9b7113615c56d9518b565724 /ironic
parent3bb4cbf95bbf7d960263001b0ee17e24bf1f825e (diff)
downloadironic-ba542223fb4730f613ebd94e9bdf164ed19ca7e3.tar.gz
Remove unnecessary validation in PXE
It is unncessary to always validate boot option for uefi in PXEDeploy, especially we already know boot_mode is bios. Change-Id: Iae908f39125ceca64b03b8929b658e402beaef58
Diffstat (limited to 'ironic')
-rw-r--r--ironic/drivers/modules/pxe.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ironic/drivers/modules/pxe.py b/ironic/drivers/modules/pxe.py
index 64a7bc07d..92d73acfe 100644
--- a/ironic/drivers/modules/pxe.py
+++ b/ironic/drivers/modules/pxe.py
@@ -324,7 +324,8 @@ class PXEDeploy(base.DeployInterface):
# Check if 'boot_option' is compatible with 'boot_mode' of uefi and
# image being deployed
- validate_boot_option_for_uefi(task.node)
+ if boot_mode == 'uefi':
+ validate_boot_option_for_uefi(task.node)
d_info = _parse_deploy_info(node)