Merge "Update hacking version"

This commit is contained in:
Zuul 2019-02-20 17:06:14 +00:00 committed by Gerrit Code Review
commit 6d88dbc7f2
4 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
brick Style Commandments
===============================================
========================
Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/

View File

@ -455,8 +455,8 @@ class LinuxSCSI(executor.Executor):
lines = out.strip()
lines = lines.split("\n")
lines = [line for line in lines
if not re.match(MULTIPATH_ERROR_REGEX, line)
and len(line)]
if not re.match(MULTIPATH_ERROR_REGEX, line) and
len(line)]
if lines:
mdev_name = lines[0].split(" ")[0]

View File

@ -140,8 +140,8 @@ class WindowsFCConnector(win_conn_base.BaseWindowsConnector):
for node_name in hba_mappings:
target_mappings = self._fc_utils.get_fc_target_mappings(node_name)
for mapping in target_mappings:
if (mapping['port_name'] in target_wwpns
and mapping['lun'] == target_lun):
if (mapping['port_name'] in target_wwpns and
mapping['lun'] == target_lun):
volume_mappings.append(mapping)
return volume_mappings

View File

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
hacking>=1.1.0,<1.2.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
ddt>=1.0.1 # MIT
reno>=2.5.0 # Apache-2.0