Bug 1672370 - flake8 fail: code over-indentation
Summary: flake8 fail: code over-indentation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-octavia
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: z5
: 13.0 (Queens)
Assignee: Carlos Goncalves
QA Contact: Alexander Stafeyev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-04 18:40 UTC by Carlos Goncalves
Modified: 2022-07-09 10:39 UTC (History)
4 users (show)

Fixed In Version: openstack-octavia-2.0.3-2.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-14 13:33:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 634730 0 None None None 2019-02-04 18:40:08 UTC
Red Hat Issue Tracker OSP-17048 0 None None None 2022-07-09 10:39:48 UTC
Red Hat Product Errata RHSA-2019:0567 0 None None None 2019-03-14 13:33:19 UTC

Description Carlos Goncalves 2019-02-04 18:40:09 UTC
The new pycodestyle 2.5.0 enforces E117 which checks for over-indented code.

pep8 runtests: commands[0] | flake8
./octavia/tests/unit/network/drivers/neutron/test_base.py:78:17: E126 continuation line over-indented for hanging indent
               'port': {
               ^
./octavia/tests/unit/common/test_validations.py:277:18: E126 continuation line over-indented for hanging indent
                'octavia.common.utils.get_network_driver') as net_mock:
                ^
./octavia/tests/functional/api/v2/test_listener.py:1218:28: E126 continuation line over-indented for hanging indent
                          listener_id=listener_id + "/stats"))
                          ^
./octavia/tests/functional/api/v2/test_listener.py:1316:32: E126 continuation line over-indented for hanging indent
                              listener_id=li['id'] + "/stats"), status=403)
                              ^
./octavia/amphorae/backends/agent/api_server/listener.py:200:29: E126 continuation line over-indented for hanging indent
                           amphora_nsname=consts.AMPHORA_NAMESPACE,
                           ^

Comment 13 errata-xmlrpc 2019-03-14 13:33:12 UTC
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/RHSA-2019:0567


Note You need to log in before you can comment on or make changes to this bug.