summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2012-05-10 21:17:16 +0000
committerChris Behrens <cbehrens@codestud.com>2012-05-10 21:17:16 +0000
commit584917cce51d9100abf4e5160c6cf5fa7055f618 (patch)
tree120e961750a6cc90d94d4a654de9d8d8da033c32 /plugins
parente00e45be42fd569b350ebfd124336133ecef9178 (diff)
downloadnova-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-xplugins/xenserver/xenapi/etc/xapi.d/plugins/agent2
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)