Re-enable important py3k checks for openstack-armada-app
Re-enabling some of the disabled tox warnings present on the pylint.rc file Re-enabling: W1646: invalid-str-codec Story: 2006796 Task: 43329 Signed-off-by: Bernardo Decco <bernardo.deccodesiqueira@windriver.com> Change-Id: I2fdb91154510e839cab4804a5ef223f2cdd58cec
This commit is contained in:
parent
a7f3a058fe
commit
9b7979d5d1
@ -5,6 +5,7 @@
|
||||
#
|
||||
|
||||
from eventlet.green import subprocess
|
||||
import base64
|
||||
import keyring
|
||||
import os
|
||||
|
||||
@ -602,7 +603,7 @@ class OpenstackBaseHelm(base.BaseHelm):
|
||||
kube = kubernetes.KubeOperator()
|
||||
keyring = kube.kube_get_secret(constants.K8S_RBD_PROV_ADMIN_SECRET_NAME,
|
||||
common.HELM_NS_STORAGE_PROVISIONER)
|
||||
return keyring.data['key'].decode('base64', 'strict')
|
||||
return base64.b64decode(keyring.data['key']).decode('utf-8')
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
@ -170,12 +170,11 @@ enable=E1603,E1609,E1610,E1602,E1606,E1608,E1607,E1605,E1604,E1601,E1611,W1652,
|
||||
# E1120: no-value-for-parameter
|
||||
# E1121: too-many-function-args
|
||||
# Disable Python3 checkers:
|
||||
# W1618: no-absolute-import
|
||||
# W1646: invalid-str-codec
|
||||
# W1618: no-absolute-import
|
||||
disable=C, R, fixme, W0101, W0105, W0106, W0107, W0108, W0110, W0123, W0150,
|
||||
W0201, W0211, W0212, W0221, W0223, W0231, W0235, W0311, W0402, W0403,
|
||||
W0404, W0603, W0612, W0613, W0621, W0622, W0631, W0632, W0701, W0703,
|
||||
W1113, W1201, W1401, W1505, W1618, W1646,
|
||||
W1113, W1201, W1401, W1505, W1618,
|
||||
E0213, E0401, E0604, E0633, E0701, E1102, E1120, E1121
|
||||
|
||||
[REPORTS]
|
||||
|
Loading…
Reference in New Issue
Block a user