Improve docstrings
Change-Id: I512aa8fafd194eb22dc8c08942964f7d82534377
This commit is contained in:
parent
9a62860dd4
commit
5742ebe17d
|
@ -109,7 +109,8 @@ class ISCSIConnector(base.BaseLinuxConnector, base_iscsi.BaseISCSIConnector):
|
|||
"""Get iSCSI session information as a list of tuples.
|
||||
|
||||
Uses iscsiadm -m session and from a command output like
|
||||
tcp: [1] 192.168.121.250:3260,1 iqn.2010-10.org.openstack:volume-
|
||||
tcp: [1] 192.168.121.250:3260,1 iqn.2010-10.org.openstack:
|
||||
volume- (non-flash)
|
||||
|
||||
This method will drop the node type and return a list like this:
|
||||
[('tcp:', '1', '192.168.121.250:3260', '1',
|
||||
|
@ -135,7 +136,7 @@ class ISCSIConnector(base.BaseLinuxConnector, base_iscsi.BaseISCSIConnector):
|
|||
def _get_iscsi_nodes(self):
|
||||
"""Get iSCSI node information (portal, iqn) as a list of tuples.
|
||||
|
||||
Uses iscsi_adm -m node and from a command output like
|
||||
Uses iscsiadm -m node and from a command output like
|
||||
192.168.121.250:3260,1 iqn.2010-10.org.openstack:volume
|
||||
|
||||
This method will drop the tpgt and return a list like this:
|
||||
|
|
|
@ -615,7 +615,7 @@ class LinuxSCSI(executor.Executor):
|
|||
"""Find the device name given a session and the hctl.
|
||||
|
||||
:param session: A string with the session number
|
||||
"param hctl: An iterable with the host, channel, target, and lun as
|
||||
:param hctl: An iterable with the host, channel, target, and lun as
|
||||
passed to scan. ie: ('5', '-', '-', '0')
|
||||
"""
|
||||
if '-' in hctl:
|
||||
|
|
Loading…
Reference in New Issue