[elbe-devel] [PATCH 2/2] elbepack: soapclient: don't expose the underlying client object

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Jul 2 08:37:41 CEST 2024


It is never used, so hide it.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/soapclient.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/elbepack/soapclient.py b/elbepack/soapclient.py
index e8bc7339f079..a3bab5865a18 100644
--- a/elbepack/soapclient.py
+++ b/elbepack/soapclient.py
@@ -59,14 +59,14 @@ class ElbeSoapClient:
 
         # Attributes
         self.wsdl = 'http://' + host + ':' + str(port) + '/soap/?wsdl'
-        self.control = None
+        control = None
         current_retries = 0
 
         # Loop and try to connect
-        while self.control is None:
+        while control is None:
             current_retries += 1
             try:
-                self.control = Client(self.wsdl, timeout=cfg['soaptimeout'])
+                control = Client(self.wsdl, timeout=cfg['soaptimeout'])
             except URLError as e:
                 if current_retries > retries:
                     raise e
@@ -82,7 +82,7 @@ class ElbeSoapClient:
 
         # Make sure, that client.service still maps
         # to the service object.
-        self.service = self.control.service
+        self.service = control.service
 
         ElbeVersionMismatch.check(elbe_version, self.service.get_version())
 

-- 
2.45.2



More information about the elbe-devel mailing list