diff options
| author | Dan Prince <dan.prince@rackspace.com> | 2011-07-18 09:38:50 -0400 |
|---|---|---|
| committer | Dan Prince <dan.prince@rackspace.com> | 2011-07-18 09:38:50 -0400 |
| commit | b927674112849e7b4ebbd59c188d8f7a1eb47e2a (patch) | |
| tree | 4316e49531f265b7bee8cd50ba82ac3e2687e4d5 /plugins | |
| parent | 3233d6cafb22305f09c1384ba30e677751cace6a (diff) | |
| download | nova-b927674112849e7b4ebbd59c188d8f7a1eb47e2a.tar.gz nova-b927674112849e7b4ebbd59c188d8f7a1eb47e2a.tar.xz nova-b927674112849e7b4ebbd59c188d8f7a1eb47e2a.zip | |
Check returncode in get_agent_features.
Diffstat (limited to 'plugins')
| -rwxr-xr-x | plugins/xenserver/xenapi/etc/xapi.d/plugins/agent | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent b/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent index 1321c820e..41225e6f3 100755 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent @@ -188,7 +188,10 @@ def _get_agent_features(self, arg_dict): except TimeoutError, e: raise PluginError(e) response = json.loads(resp) - return response["message"].split(",") + if response['returncode'] != '0': + return response["message"].split(",") + else: + return {} def _wait_for_agent(self, request_id, arg_dict): |
