Fix new pylint issues

The new pylint release removed a few rule sets and added a check for generators. This patch updates Octavia for those changes.

Change-Id: I2261342377e7acb1d2bc4fc742a351dfc66e4305
This commit is contained in:
Michael Johnson 2022-06-08 14:45:51 +00:00 committed by Tom Weininger
parent 6253560d22
commit d590d6c705
2 changed files with 1 additions and 6 deletions

View File

@ -20,11 +20,9 @@ disable=
anomalous-backslash-in-string,
arguments-differ,
attribute-defined-outside-init,
bad-builtin,
broad-except,
fixme,
global-statement,
no-init,
pointless-string-statement,
protected-access,
redefined-builtin,
@ -35,15 +33,12 @@ disable=
unused-variable,
useless-super-delegation,
# "C" Coding convention violations
bad-continuation,
invalid-name,
line-too-long,
missing-docstring,
consider-using-f-string,
# "R" Refactor recommendations
duplicate-code,
interface-not-implemented,
no-self-use,
too-few-public-methods,
too-many-ancestors,
too-many-arguments,

View File

@ -149,7 +149,7 @@ class AmphoraInfo(object):
'iowait': vals[6],
'irq': vals[7],
'softirq': vals[8],
'total': sum([int(i) for i in vals[2:]])
'total': sum(int(i) for i in vals[2:])
}
def _load(self):