Fix XenServer windows agent issue

Windows agent requires an argument of either 'agent' or 'xentools' to
the 'version' command.  All we care about is 'agent', so add it.  The
unix agent happily ignores the arg.

Fixes bug 997805

Change-Id: Ic369c8a2850173057da9d3175a02b5864d7a6514
This commit is contained in:
Chris Behrens 2012-05-10 21:17:16 +00:00
parent e00e45be42
commit 584917cce5
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class TimeoutError(StandardError):
def version(self, arg_dict):
"""Get version of agent."""
arg_dict["value"] = json.dumps({"name": "version", "value": ""})
arg_dict["value"] = json.dumps({"name": "version", "value": "agent"})
request_id = arg_dict["id"]
arg_dict["path"] = "data/host/%s" % request_id
xenstore.write_record(self, arg_dict)