[elbe-devel] [PATCH 02/12] pylint esoap: disable no-self-use in get_version(), install_elbe_version()
Torben Hohn
torben.hohn at linutronix.de
Thu Sep 26 15:33:22 CEST 2019
functions exported via the soap interface need to be methods of ESoap.
There are very few functions, that do not need to access self.
These functions do not need to check, whether the uid is allowed to
access the project.
add the pylint disable directive to the respective methods.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/daemons/soap/esoap.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/elbepack/daemons/soap/esoap.py b/elbepack/daemons/soap/esoap.py
index d71d069dc..9f79b3e74 100644
--- a/elbepack/daemons/soap/esoap.py
+++ b/elbepack/daemons/soap/esoap.py
@@ -49,6 +49,7 @@ class ESoap (ServiceBase):
@rpc(_returns=String)
@soap_faults
def get_version(self):
+ # pylint: disable=no-self-use
return elbe_version
@rpc(String, String, _returns=Boolean)
@@ -69,6 +70,7 @@ class ESoap (ServiceBase):
@soap_faults
@authenticated_admin
def install_elbe_version(self, version, pkglist):
+ # pylint: disable=no-self-use
if is_devel:
return SoapCmdReply(10,
'Initvm is in devel mode: installing another\n'
--
2.20.1
More information about the elbe-devel
mailing list