summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server
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:10 +0000
commit082e46f9ca784a3c714a18642904cccf133f408f (patch)
treecbd1da57ccf9f93317c8612ee462c31812ff13d6 /bitbake/lib/bb/server
parent9331f576897a2b444a56ee5639f555a5ecac9fe8 (diff)
downloadpoky-082e46f9ca784a3c714a18642904cccf133f408f.tar.gz
bitbake: 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] (Bitbake rev: ce5b65d5fada474ef21ac28440af6ad45287650a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r--bitbake/lib/bb/server/xmlrpcserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/xmlrpcserver.py b/bitbake/lib/bb/server/xmlrpcserver.py
index 2e65dc34a9..04b0b17db1 100644
--- a/bitbake/lib/bb/server/xmlrpcserver.py
+++ b/bitbake/lib/bb/server/xmlrpcserver.py
@@ -118,7 +118,7 @@ class BitBakeXMLRPCServerCommands():
118 """ 118 """
119 Run a cooker command on the server 119 Run a cooker command on the server
120 """ 120 """
121 return self.server.cooker.command.runCommand(command, self.server, self.server.readonly) 121 return self.server.cooker.command.runCommand(command, self.server.parent, self.server.readonly)
122 122
123 def getEventHandle(self): 123 def getEventHandle(self):
124 return self.event_handle 124 return self.event_handle