diff options
author | Paul Barker <pbarker@konsulko.com> | 2021-04-28 10:51:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-01 22:48:17 +0100 |
commit | f7f459bf6548fabbf3cdc92322daae6cfab50e7a (patch) | |
tree | 7be73cb6f132fe9201a675ec340b84f7325ccaa7 /meta | |
parent | fc5b3c78e59b95d7499c47380952643a58bf0b93 (diff) | |
download | poky-f7f459bf6548fabbf3cdc92322daae6cfab50e7a.tar.gz |
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.
(From OE-Core rev: 6bf39c5c8cf09e3f2ce6eba13b9d18193bce9655)
Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/prservice.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/prservice.py b/meta/lib/oe/prservice.py index fcdbe66c19..15ce060ff6 100644 --- a/meta/lib/oe/prservice.py +++ b/meta/lib/oe/prservice.py | |||
@@ -7,7 +7,7 @@ def prserv_make_conn(d, check = False): | |||
7 | host_params = list([_f for _f in (d.getVar("PRSERV_HOST") or '').split(':') if _f]) | 7 | host_params = list([_f for _f in (d.getVar("PRSERV_HOST") or '').split(':') if _f]) |
8 | try: | 8 | try: |
9 | conn = None | 9 | conn = None |
10 | conn = prserv.serv.PRServerConnection(host_params[0], int(host_params[1])) | 10 | conn = prserv.serv.connect(host_params[0], int(host_params[1])) |
11 | if check: | 11 | if check: |
12 | if not conn.ping(): | 12 | if not conn.ping(): |
13 | raise Exception('service not available') | 13 | raise Exception('service not available') |