From 5a9ee247dba253a3e0e67d0fb66e9974dd58f7eb Mon Sep 17 00:00:00 2001 From: Chris Krelle Date: Sat, 28 Sep 2013 08:54:25 -0700 Subject: [PATCH] Doc string and minor clean up for 41976 Just a doc string and minor clean up for vender_passthru Change-Id: I6c7620d11c37385150b279ce94b1816f7ef0b99d --- ironic/conductor/rpcapi.py | 3 +++ ironic/drivers/modules/fake.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ironic/conductor/rpcapi.py b/ironic/conductor/rpcapi.py index 70a2ad70db..d936f4be06 100644 --- a/ironic/conductor/rpcapi.py +++ b/ironic/conductor/rpcapi.py @@ -97,6 +97,9 @@ class ConductorAPI(ironic.openstack.common.rpc.proxy.RpcProxy): :param node_id: node id or uuid. :param driver_method: name of method for driver. :param info: info for node driver. + + :raises: InvalidParameterValue for parameter errors. + :raises: UnsupportedDriverExtension for unsupported extensions. """ driver_data = self.call(context, self.make_msg('validate_vendor_action', diff --git a/ironic/drivers/modules/fake.py b/ironic/drivers/modules/fake.py index 4dfc7ca686..a288185763 100644 --- a/ironic/drivers/modules/fake.py +++ b/ironic/drivers/modules/fake.py @@ -74,7 +74,7 @@ class FakeVendor(base.VendorInterface): "Unsupported method (%s) passed through to vendor extension.") % method) - return True if bar == 'baz' else False + return True def _foo(self, task, node, bar): return True if bar == 'baz' else False