From 377915b2369232f97ccaa313948f7d9f212f3873 Mon Sep 17 00:00:00 2001 From: Yuiko Takada Date: Tue, 27 May 2014 16:39:42 +0000 Subject: [PATCH] Remove "node" parameter from methods handling power state in docs This patch fixes the doc about methods handling power state to remove the parameter "node". * validate * get_power_state * set_power_state * reboot Change-Id: I5c0425e1502f304b62566aa1e63823214888ef66 Partial-Bug: #1312632 --- doc/source/dev/architecture.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/source/dev/architecture.rst b/doc/source/dev/architecture.rst index 6835a612b0..00edce021d 100644 --- a/doc/source/dev/architecture.rst +++ b/doc/source/dev/architecture.rst @@ -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):