Description of problem: OSP 12 PEP8 is failing suddenly with multiple failures: ./neutron/policy.py:302:13: E731 do not assign a lambda expression, use a def conv_func = lambda x: x ^ ./neutron/db/allowedaddresspairs_db.py:93:17: W503 line break before binary operator and port['port'][addr_pair.ADDRESS_PAIRS] != []) ^ ./neutron/db/db_base_plugin_common.py:71:9: E731 do not assign a lambda expression, use a def do_filter = lambda d: {k: v for k, v in d.items() if k in fields} ^ ./neutron/db/extradhcpopt_db.py:86:33: W503 line break before binary operator and opt['ip_version'] == upd_rec.get( ^ ./neutron/db/ipam_backend_mixin.py:761:13: W503 line break before binary operator and host and not old_host ^ ./neutron/db/ipam_backend_mixin.py:762:13: W503 line break before binary operator and not old_ips ^ ./neutron/db/ipam_backend_mixin.py:763:13: W503 line break before binary operator and not fixed_ips_requested) ^ ./neutron/db/l3_db.py:772:17: W503 line break before binary operator and subnet['ipv6_address_mode'] is not None): ^ ./neutron/db/l3_db.py:1554:9: E731 do not assign a lambda expression, use a def Version-Release number of selected component (if applicable): Latest OSP 12 How reproducible: 100% Steps to Reproduce: 1. Clone neutron OSP 12 2. Run PEP8 with tox -e pep8
There were some recent pep8 bumps upstream, the upstream backport was just merged in for stable/pike (in links). I will backport this downstream so tests can pass until the next sync
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2514