summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-07 12:49:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-07 12:52:08 +0000
commitce5b65d5fada474ef21ac28440af6ad45287650a (patch)
tree6c6d9076093d293863a7be27fe45cb1798c291ec
parent6bc65e6402a74c9a65e29333a7e0f1f85dcbcf58 (diff)
downloadbitbake-ce5b65d5fada474ef21ac28440af6ad45287650a.tar.gz
server/xmlrpc: Fix after currentAsyncCommand locking changes
After changes in bitbake b5215887d2f8ea3f28f1ebda721bd5b8f93ec7f3, "process/cooker/command: Fix currentAsyncCommand locking/races", command.py assumes it has access to the process server but the xmlrpc backend was passing in the xmlrpc server object leading to errors like: xmlrpc.client.Fault: <Fault 1: "<class 'AttributeError'>:'BitBakeXMLRPCServer' object has no attribute 'set_async_cmd'"> Fixing to pass the process server to command.py resolves this issue. [YOCTO #15008] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/server/xmlrpcserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/server/xmlrpcserver.py b/lib/bb/server/xmlrpcserver.py
index 2e65dc34a..04b0b17db 100644
--- a/lib/bb/server/xmlrpcserver.py
+++ b/lib/bb/server/xmlrpcserver.py
@@ -118,7 +118,7 @@ class BitBakeXMLRPCServerCommands():
"""
Run a cooker command on the server
"""
- return self.server.cooker.command.runCommand(command, self.server, self.server.readonly)
+ return self.server.cooker.command.runCommand(command, self.server.parent, self.server.readonly)
def getEventHandle(self):
return self.event_handle