From f20523aeca92830f788f86d6c01cc3f63bde18f5 Mon Sep 17 00:00:00 2001 From: Brian Elliott Date: Mon, 11 Nov 2013 17:20:19 +0000 Subject: [PATCH] xenapi: Fix agent update message format Fix the agent update message send so Windows guests will work Message must be formatted: "url,md5sum" Change-Id: I675cc5a7ca522696eab1820c14c48361ff7e0f74 Closes-Bug: 1250165 --- plugins/xenserver/xenapi/etc/xapi.d/plugins/agent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent b/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent index f74356ee1240..546e73368ded 100755 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent @@ -170,7 +170,7 @@ def agent_update(self, arg_dict): url = arg_dict["url"] md5sum = arg_dict["md5sum"] arg_dict["value"] = json.dumps({"name": "agentupdate", - "value": {"url": url, "md5sum": md5sum}}) + "value": "%s,%s" % (url, md5sum)}) arg_dict["path"] = "data/host/%s" % request_id xenstore.write_record(self, arg_dict) try: