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
parent 74cd04d171
commit d668e1f205
2 changed files with 1 additions and 5 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,13 +33,11 @@ disable=
unused-variable,
useless-super-delegation,
# "C" Coding convention violations
bad-continuation,
invalid-name,
line-too-long,
missing-docstring,
# "R" Refactor recommendations
duplicate-code,
interface-not-implemented,
no-self-use,
too-few-public-methods,
too-many-ancestors,

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):