Repository: cloudstack-cloudmonkey Updated Branches: refs/heads/master 242b8e7ed -> 641b1b698
FIX responses /contain/ word "response", but may not exactly match Signed-off-by: Rohit Yadav <[email protected]> This closes #8 Project: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/commit/641b1b69 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/641b1b69 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/641b1b69 Branch: refs/heads/master Commit: 641b1b698d5b3862001147207a51e85cbbafa434 Parents: 242b8e7 Author: Nuno Tavares <[email protected]> Authored: Mon Aug 3 11:06:23 2015 +0200 Committer: Rohit Yadav <[email protected]> Committed: Wed Aug 5 13:42:28 2015 +0530 ---------------------------------------------------------------------- cloudmonkey/requester.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/641b1b69/cloudmonkey/requester.py ---------------------------------------------------------------------- diff --git a/cloudmonkey/requester.py b/cloudmonkey/requester.py index 6dd292a..a8f587b 100644 --- a/cloudmonkey/requester.py +++ b/cloudmonkey/requester.py @@ -277,7 +277,8 @@ def monkeyrequest(command, args, isasync, asyncblock, logger, url, if not response or not isinstance(response, dict): return response, error - if 'response' not in response: + m = list(v for v in response.keys() if 'response' in v.lower()) + if not m: return response, 'Invalid response received: %s' % response isasync = isasync and (asyncblock == "true" or asyncblock == "True")
