Pin pylint version

Pylint 2.7 added new checks that make pep8 fail.
Fix the error but pin pylint so it doesn't break
the gate in the future.

Change-Id: I425a4265d5bca990d4b93d19eedc7b40a73311ef
This commit is contained in:
Brian Haley 2021-02-24 17:01:31 -05:00
parent 175ce9f932
commit 0db33223de
2 changed files with 3 additions and 3 deletions

View File

@ -85,8 +85,8 @@ class OvnProviderHelper(object):
@staticmethod
def _is_lb_empty(external_ids):
"""Check if there is no pool or listener defined."""
return not any([k.startswith('listener') or k.startswith('pool')
for k in external_ids])
return not any(k.startswith('listener') or k.startswith('pool')
for k in external_ids)
@staticmethod
def _delete_disabled_from_status(status):

View File

@ -10,7 +10,7 @@ flake8-import-order==0.12 # LGPLv3
python-subunit>=1.0.0 # Apache-2.0/BSD
oslotest>=3.2.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
pylint>=2.5.3 # GPLv2
pylint>=2.5.3,<=2.6.0 # GPLv2
isort==4.3.21 # MIT
octavia-lib>=1.3.1 # Apache-2.0
testresources>=2.0.0 # Apache-2.0/BSD