summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/redfish/boot.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironic/drivers/modules/redfish/boot.py')
-rw-r--r--ironic/drivers/modules/redfish/boot.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/ironic/drivers/modules/redfish/boot.py b/ironic/drivers/modules/redfish/boot.py
index 47b85cc25..55c826fc6 100644
--- a/ironic/drivers/modules/redfish/boot.py
+++ b/ironic/drivers/modules/redfish/boot.py
@@ -468,14 +468,7 @@ class RedfishVirtualMediaBoot(base.BootInterface):
operation failed on the node.
"""
node = task.node
- # NOTE(TheJulia): If this method is being called by something
- # aside from deployment, clean and rescue, such as conductor takeover,
- # we should treat this as a no-op and move on otherwise we would
- # modify the state of the node due to virtual media operations.
- if node.provision_state not in (states.DEPLOYING,
- states.CLEANING,
- states.RESCUING,
- states.INSPECTING):
+ if not driver_utils.need_prepare_ramdisk(node):
return
d_info = _parse_driver_info(node)