Return-Path: X-Original-To: apmail-libcloud-notifications-archive@www.apache.org Delivered-To: apmail-libcloud-notifications-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EC85B10EE8 for ; Fri, 23 May 2014 09:15:57 +0000 (UTC) Received: (qmail 31541 invoked by uid 500); 23 May 2014 09:15:57 -0000 Delivered-To: apmail-libcloud-notifications-archive@libcloud.apache.org Received: (qmail 31519 invoked by uid 500); 23 May 2014 09:15:57 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 31512 invoked by uid 500); 23 May 2014 09:15:57 -0000 Delivered-To: apmail-libcloud-commits@libcloud.apache.org Received: (qmail 31509 invoked by uid 99); 23 May 2014 09:15:57 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 09:15:57 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A48A999FB30; Fri, 23 May 2014 09:15:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tomaz@apache.org To: commits@libcloud.apache.org Message-Id: <2bd6d228c92347209ae1c28ebd3b7d21@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: Fix for new versions of CloudStack which have fixed the delete security group rule response. Date: Fri, 23 May 2014 09:15:57 +0000 (UTC) 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 Authored: Fri May 23 11:15:08 2014 +0200 Committer: Tomaz Muraus 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: