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
This commit is contained in:
Brian Elliott 2013-11-11 17:20:19 +00:00
parent 9393ed0a85
commit f20523aeca

View File

@ -170,7 +170,7 @@ def agent_update(self, arg_dict):
url = arg_dict["url"] url = arg_dict["url"]
md5sum = arg_dict["md5sum"] md5sum = arg_dict["md5sum"]
arg_dict["value"] = json.dumps({"name": "agentupdate", 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 arg_dict["path"] = "data/host/%s" % request_id
xenstore.write_record(self, arg_dict) xenstore.write_record(self, arg_dict)
try: try: