Skip to contentSkip to conversation

server/xmlrpc: Fix after currentAsyncCommand locking changes

PATCH New Richard Purdie 1 participant 1 message Mar 7, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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]

---
 lib/bb/server/xmlrpcserver.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/server/xmlrpcserver.py +1 -1
index 2e65dc34a9..04b0b17db1 100644
@@ -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
Signature · 1 line
2.38.1