Merge "WOL driver - include POWER_OFF in supported power states"
This commit is contained in:
commit
611b44863b
|
@ -213,4 +213,11 @@ class WakeOnLanDriverTestCase(db_base.DbTestCase):
|
||||||
with task_manager.acquire(
|
with task_manager.acquire(
|
||||||
self.context, self.node.uuid, shared=True) as task:
|
self.context, self.node.uuid, shared=True) as task:
|
||||||
pstate = task.driver.power.get_supported_power_states(task)
|
pstate = task.driver.power.get_supported_power_states(task)
|
||||||
self.assertEqual([states.POWER_ON, states.REBOOT], pstate)
|
self.assertEqual(
|
||||||
|
[
|
||||||
|
states.POWER_ON,
|
||||||
|
states.POWER_OFF,
|
||||||
|
states.REBOOT
|
||||||
|
],
|
||||||
|
pstate
|
||||||
|
)
|
||||||
|
|
|
@ -198,4 +198,4 @@ class WakeOnLanPower(base.PowerInterface):
|
||||||
:returns: A list with the supported power states defined
|
:returns: A list with the supported power states defined
|
||||||
in :mod:`ironic.common.states`.
|
in :mod:`ironic.common.states`.
|
||||||
"""
|
"""
|
||||||
return [states.POWER_ON, states.REBOOT]
|
return [states.POWER_ON, states.POWER_OFF, states.REBOOT]
|
||||||
|
|
Loading…
Reference in New Issue