Repository: cloudstack-cloudmonkey Updated Branches: refs/heads/master 4a982ddd0 -> 3023ace5f
In the specific case of a "create networkoffering" with no services, the parameter 'supportedservices' gets stripped off because it's empty. However, the API requires it as mandatatory - and yes, the UI allows you to create a n.o. with no services. Signed-off-by: Rohit Yadav <[email protected]> This closes #4 Project: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/commit/3023ace5 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/3023ace5 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/3023ace5 Branch: refs/heads/master Commit: 3023ace5f279691afeb2043d538034c533c608f9 Parents: 4a982dd Author: Nuno Tavares <[email protected]> Authored: Fri May 15 12:27:27 2015 +0200 Committer: Rohit Yadav <[email protected]> Committed: Fri May 15 14:43:55 2015 +0200 ---------------------------------------------------------------------- cloudmonkey/requester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/3023ace5/cloudmonkey/requester.py ---------------------------------------------------------------------- diff --git a/cloudmonkey/requester.py b/cloudmonkey/requester.py index cf082aa..6b8c041 100644 --- a/cloudmonkey/requester.py +++ b/cloudmonkey/requester.py @@ -183,7 +183,7 @@ def make_request(command, args, logger, url, credentials, expires, if isinstance(value, unicode): value = value.encode("utf-8") args[key] = value - if not key or not value: + if not key: args.pop(key) # try to use the apikey/secretkey method by default
