Skip to contentSkip to conversation

prservice: Use new connect API

PATCH New Paul Barker 1 participant 1 message Apr 28, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 prservice: Use new connect API

The new prserv connect() function decouples the code in oe-core from the exact classes and implementation details used within bitbake. This allows us to more easily switch over to a new asyncrpc based prservice.

---
 meta/lib/oe/prservice.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/prservice.py +1 -1
index fcdbe66c19..15ce060ff6 100644
@@ -7,7 +7,7 @@ def prserv_make_conn(d, check = False):
     host_params = list([_f for _f in (d.getVar("PRSERV_HOST") or '').split(':') if _f])
     try:
         conn = None
-        conn = prserv.serv.PRServerConnection(host_params[0], int(host_params[1]))
+        conn = prserv.serv.connect(host_params[0], int(host_params[1]))
         if check:
             if not conn.ping():
                 raise Exception('service not available')
Signature · 1 line
2.26.2