From b5826c21beb446c1f01ef4bff806feb88bd9235b Mon Sep 17 00:00:00 2001 From: Dietmar Noll Date: Tue, 13 Aug 2013 10:02:36 -0700 Subject: [PATCH] Fixes docstring formats in connector.py. Docstrings should now comply with HACKING.rst Change-Id: Ia75ee0e4ceb32f312a2dc7e3c89379b5f2708767 Fixes: bug #1211861 --- cinder/brick/initiator/connector.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cinder/brick/initiator/connector.py b/cinder/brick/initiator/connector.py index 26a706755..c35449cc8 100644 --- a/cinder/brick/initiator/connector.py +++ b/cinder/brick/initiator/connector.py @@ -112,14 +112,16 @@ class InitiatorConnector(executor.Executor): return True def connect_volume(self, connection_properties): - """Connect to a volume. The connection_properties - describes the information needed by the specific - protocol to use to make the connection. + """Connect to a volume. + + The connection_properties describes the information needed by + the specific protocol to use to make the connection. """ raise NotImplementedError() def disconnect_volume(self, connection_properties, device_info): """Disconnect a volume from the local host. + The connection_properties are the same as from connect_volume. The device_info is returned from connect_volume. """ @@ -127,7 +129,7 @@ class InitiatorConnector(executor.Executor): class ISCSIConnector(InitiatorConnector): - """"Connector class to attach/detach iSCSI volumes.""" + """Connector class to attach/detach iSCSI volumes.""" def __init__(self, driver=None, execute=putils.execute, root_helper="sudo", use_multipath=False, @@ -461,7 +463,7 @@ class ISCSIConnector(InitiatorConnector): class FibreChannelConnector(InitiatorConnector): - """"Connector class to attach/detach Fibre Channel volumes.""" + """Connector class to attach/detach Fibre Channel volumes.""" def __init__(self, driver=None, execute=putils.execute, root_helper="sudo", use_multipath=False, -- 2.45.2