summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/drac/bios.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-10-23 08:46:52 +0000
committerGerrit Code Review <review@openstack.org>2015-10-23 08:46:52 +0000
commit1b3d69f33323e3d2fbdd4986768b0591f63c8a8d (patch)
tree9a80c16427143c79457323fc787c8d4d9f713677 /ironic/drivers/modules/drac/bios.py
parenta18361903bc7f90218197e41808e81169582e895 (diff)
parent4755e2adf3f15ef5875ee3933a85d0de6125ccb5 (diff)
downloadironic-1b3d69f33323e3d2fbdd4986768b0591f63c8a8d.tar.gz
Merge "DRAC BIOS vendor_passthru: enable rebooting the node"
Diffstat (limited to 'ironic/drivers/modules/drac/bios.py')
-rw-r--r--ironic/drivers/modules/drac/bios.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ironic/drivers/modules/drac/bios.py b/ironic/drivers/modules/drac/bios.py
index e6b6b1a56..2c1906659 100644
--- a/ironic/drivers/modules/drac/bios.py
+++ b/ironic/drivers/modules/drac/bios.py
@@ -388,10 +388,12 @@ def set_config(task, **kwargs):
@task_manager.require_exclusive_lock
-def commit_config(task):
+def commit_config(task, reboot=False):
"""Commits pending changes added by set_config
:param task: is the ironic task for running the config job.
+ :param reboot: indicates whether a reboot job should be automatically
+ created with the config job.
:raises: DracClientError on an error from pywsman library.
:raises: DracPendingConfigJobExists if the job is already created.
:raises: DracOperationFailed if the client received response with an
@@ -402,7 +404,7 @@ def commit_config(task):
"""
node = task.node
management.check_for_config_job(node)
- management.create_config_job(node)
+ management.create_config_job(node, reboot)
@task_manager.require_exclusive_lock