Repository: libcloud Updated Branches: refs/heads/trunk de69f0428 -> 3aca6ae03
Fix for new versions of CloudStack which have fixed the delete security group rule response. Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/3aca6ae0 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/3aca6ae0 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/3aca6ae0 Branch: refs/heads/trunk Commit: 3aca6ae03b6a7e7e202ddb5869983343ad9cb24a Parents: de69f04 Author: Tomaz Muraus <[email protected]> Authored: Fri May 23 11:15:08 2014 +0200 Committer: Tomaz Muraus <[email protected]> Committed: Fri May 23 11:15:08 2014 +0200 ---------------------------------------------------------------------- libcloud/common/cloudstack.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/3aca6ae0/libcloud/common/cloudstack.py ---------------------------------------------------------------------- diff --git a/libcloud/common/cloudstack.py b/libcloud/common/cloudstack.py index efd31c8..6c0c30e 100644 --- a/libcloud/common/cloudstack.py +++ b/libcloud/common/cloudstack.py @@ -153,7 +153,12 @@ class CloudStackConnection(ConnectionUserAndKey, PollingConnection): command = command.lower() - if command not in ['revokesecuritygroupingress']: + # Work around for older verions which don't return "response" suffix + # in delete ingress rule response command name + if command == 'revokesecuritygroupingress' and \ + not 'revokesecuritygroupingressresponse' in result.object: + command = command + else: command = command + 'response' if command not in result.object:
