Fix comments style according to Hacking rules

According to the PEP8(E265) there should be at least
one space before block comment.

Change-Id: I1c714c03c162446b00f1df279df6962ddd95c507
Partial-Bug: #1407162
This commit is contained in:
Walter A. Boring IV 2015-02-19 10:00:32 -08:00
parent 312386616c
commit 58f4325559
1 changed files with 5 additions and 5 deletions

View File

@ -275,7 +275,7 @@ class ISCSIConnector(InitiatorConnector):
device_info = {'type': 'block'}
if self.use_multipath:
#multipath installed, discovering other targets if available
# Multipath installed, discovering other targets if available
for ip, iqn in self._discover_iscsi_portals(connection_properties):
props = copy.deepcopy(connection_properties)
props['target_portal'] = ip
@ -333,7 +333,7 @@ class ISCSIConnector(InitiatorConnector):
host_device = next(dev for dev in host_devices if os.path.exists(dev))
if self.use_multipath:
#we use the multipath device instead of the single path device
# We use the multipath device instead of the single path device
self._rescan_multipath()
multipath_device = self._get_multipath_device_name(host_device)
if multipath_device is not None:
@ -538,8 +538,8 @@ class ISCSIConnector(InitiatorConnector):
"node.session.auth.password",
connection_properties['auth_password'])
#duplicate logins crash iscsiadm after load,
#so we scan active sessions to see if the node is logged in.
# Duplicate logins crash iscsiadm after load,
# so we scan active sessions to see if the node is logged in.
out = self._run_iscsiadm_bare(["-m", "session"],
run_as_root=True,
check_exit_code=[0, 1, 21])[0] or ""
@ -882,7 +882,7 @@ class AoEConnector(InitiatorConnector):
waiting_status = {'tries': 0}
#NOTE(jbr_): Device path is not always present immediately
# NOTE(jbr_): Device path is not always present immediately
def _wait_for_discovery(aoe_path):
if os.path.exists(aoe_path):
raise loopingcall.LoopingCallDone