[ovn-octavia-provider] Job pep8 failing due to bandit new lint rule
Bug #2011573 reported by
Fernando Royo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Fernando Royo |
Bug Description
Pep8 jobs are failing in master and stables branches after update bandit to 1.7.5. Basically it is doing a new lint rule checking timeout is specified in any request.
The rule B113 is marked as a warning but it making the job failing.
[1] https:/
Changed in neutron: | |
assignee: | nobody → Fernando Royo (froyoredhat) |
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
importance: | Undecided → High |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/c/openstack /ovn-octavia- provider/ +/877357 /opendev. org/openstack/ ovn-octavia- provider/ commit/ 1878eb4c21040ee 34cde8a1aae6d1f b8993ae332
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 1878eb4c21040ee 34cde8a1aae6d1f b8993ae332
Author: Fernando Royo <email address hidden>
Date: Tue Mar 14 12:18:34 2023 +0100
Fix broken pep8 jobs due to bandit 1.7.5 updated version
With the latest version of bandit (1.7.5), a new lint rule has been
introduced that checks the inclusion of the timeout parameter for
every "requests" call [1].
So B113 lint rule[2] needs to be skipped or code adapted, this patch
add the timeout parameter to the put/get requests.
[1] https:/ /github. com/PyCQA/ bandit/ commit/ 5ff73ff8ff956df 7d63fde49c3bd67 1db8e821eb /bandit. readthedocs. io/en/latest/ plugins/ b113_request_ without_ timeout. html
[2] https:/
Closes-bug: #2011573 eed176e0d3ed358 6b8d2c2cbb8
Change-Id: I341faedbf7e237