diff options
| author | Chris Behrens <cbehrens@codestud.com> | 2012-05-10 21:17:16 +0000 |
|---|---|---|
| committer | Chris Behrens <cbehrens@codestud.com> | 2012-05-10 21:17:16 +0000 |
| commit | 584917cce51d9100abf4e5160c6cf5fa7055f618 (patch) | |
| tree | 120e961750a6cc90d94d4a654de9d8d8da033c32 /plugins | |
| parent | e00e45be42fd569b350ebfd124336133ecef9178 (diff) | |
| download | nova-584917cce51d9100abf4e5160c6cf5fa7055f618.tar.gz nova-584917cce51d9100abf4e5160c6cf5fa7055f618.tar.xz nova-584917cce51d9100abf4e5160c6cf5fa7055f618.zip | |
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
Diffstat (limited to 'plugins')
| -rwxr-xr-x | plugins/xenserver/xenapi/etc/xapi.d/plugins/agent | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent b/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent index d609a88ab..fa1558bd7 100755 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent @@ -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) |
