Merge "bump pycodestyle to 2.6.0"

This commit is contained in:
Zuul 2020-06-19 16:12:17 +00:00 committed by Gerrit Code Review
commit 45868bd061
12 changed files with 17 additions and 17 deletions

View File

@ -216,7 +216,7 @@ class ServiceController(wsgi.Controller):
log_req)
result.append({'host': service.host,
'binary': service.binary,
'levels': {l.prefix: l.level for l in levels}})
'levels': {le.prefix: le.level for le in levels}})
return {'log_levels': result}

View File

@ -545,7 +545,7 @@ class Client(object):
self.vnx.remove_hba(initiator_uid)
def update_consistencygroup(self, cg, lun_ids_to_add, lun_ids_to_remove):
lun_ids_in_cg = (set([l.lun_id for l in cg.lun_list]) if cg.lun_list
lun_ids_in_cg = (set([lu.lun_id for lu in cg.lun_list]) if cg.lun_list
else set())
# lun_ids_to_add and lun_ids_to_remove never overlap.

View File

@ -520,10 +520,10 @@ class KaminarioCinderDriver(cinder.volume.driver.ISCSIDriver):
def _is_user_snap_sync_finished(self):
# waiting for user snapshot to be synced
while len(self.snap_updates) > 0:
for l in self.snap_updates:
sess = l.get('tgt_ssn')
gno = l.get('gno')
stime = l.get('stime')
for update in self.snap_updates:
sess = update.get('tgt_ssn')
gno = update.get('gno')
stime = update.get('stime')
sess.refresh()
if (sess.generation_number == gno and
sess.current_snapshot_progress == 100
@ -535,7 +535,7 @@ class KaminarioCinderDriver(cinder.volume.driver.ISCSIDriver):
self.snap_updates.append({'tgt_ssn': sess,
'gno': gen_no,
'stime': time.time()})
self.snap_updates.remove(l)
self.snap_updates.remove(update)
eventlet.sleep(1)
@utils.trace

View File

@ -657,8 +657,8 @@ class QuobyteDriver(remotefs_drv.RemoteFSSnapDriverDistributed):
"""Mount Quobyte volume to mount path."""
mounted = False
with QuobyteDriver.read_proc_mount() as proc_mount:
for l in proc_mount:
if l.split()[1] == mount_path:
for line in proc_mount:
if line.split()[1] == mount_path:
mounted = True
break

View File

@ -97,7 +97,7 @@ psycopg2==2.7
pyasn1-modules==0.2.1
pyasn1==0.4.2
pycadf==2.7.0
pycodestyle==2.5.0
pycodestyle==2.6.0
pycparser==2.19
pyflakes==0.8.1
Pygments==2.2.0

View File

@ -12,7 +12,7 @@ coverage!=4.4,>=4.1 # Apache-2.0
ddt>=1.2.1 # MIT
fixtures>=3.0.0 # Apache-2.0/BSD
oslotest>=3.2.0 # Apache-2.0
pycodestyle==2.5.0 # MIT License
pycodestyle==2.6.0 # MIT License
PyMySQL>=0.7.6 # MIT License
psycopg2>=2.7 # LGPL/ZPL
SQLAlchemy-Utils>=0.36.1 # BSD License