aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Barker <pbarker@konsulko.com>2021-04-26 09:16:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-27 15:12:22 +0100
commitd892287b31f81b075983ba500be265f75b53df64 (patch)
tree3c70139daa471fae59d130f6491e7262549a614a
parentecb7bf34eac02ff58dbc27b3768ceaf4adb1c9cd (diff)
downloadbitbake-d892287b31f81b075983ba500be265f75b53df64.tar.gz
prserv: Add connect function
This function abstracts the setup of a PR service client connection so that openembedded-core doesn't need to be updated any time the details are changed. Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/prserv/serv.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/prserv/serv.py b/lib/prserv/serv.py
index 6ccc7ee9e..4375d3e59 100644
--- a/lib/prserv/serv.py
+++ b/lib/prserv/serv.py
@@ -482,3 +482,6 @@ def auto_shutdown():
def ping(host, port):
conn=PRServerConnection(host, port)
return conn.ping()
+
+def connect(host, port):
+ return PRServerConnection(host, port)