diff --git a/.pylintrc b/.pylintrc index cf6899a117..0618222a64 100644 --- a/.pylintrc +++ b/.pylintrc @@ -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, diff --git a/octavia/amphorae/backends/agent/api_server/amphora_info.py b/octavia/amphorae/backends/agent/api_server/amphora_info.py index c1100f2060..7a9dda2b50 100644 --- a/octavia/amphorae/backends/agent/api_server/amphora_info.py +++ b/octavia/amphorae/backends/agent/api_server/amphora_info.py @@ -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):