Merge "Remove "node" parameter from methods handling power state in docs"
This commit is contained in:
commit
250ff573ca
@ -33,10 +33,16 @@ each interface is an instance of the relevant driver module.
|
||||
For example, a fake driver class might look like this::
|
||||
|
||||
class FakePower(base.PowerInterface):
|
||||
def get_power_state(self, task, node):
|
||||
def validate(self, task):
|
||||
pass
|
||||
|
||||
def get_power_state(self, task):
|
||||
return states.NOSTATE
|
||||
|
||||
def set_power_state(self, task, node, power_state):
|
||||
def set_power_state(self, task, power_state):
|
||||
pass
|
||||
|
||||
def reboot(self, task):
|
||||
pass
|
||||
|
||||
class FakeDriver(base.BaseDriver):
|
||||
|
Loading…
x
Reference in New Issue
Block a user