]> code.ossystems Code Review - openembedded-core.git/commitdiff
prservice: Use new connect API
authorPaul Barker <pbarker@konsulko.com>
Wed, 28 Apr 2021 09:51:32 +0000 (10:51 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 1 May 2021 21:46:42 +0000 (22:46 +0100)
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.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/prservice.py

index fcdbe66c198a4024b54df464c7e6ad1eef94d8e0..15ce060ff66bb23921564a75b729817ac3c88a00 100644 (file)
@@ -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')