Return-Path: X-Original-To: apmail-libcloud-commits-archive@www.apache.org Delivered-To: apmail-libcloud-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91E38D844 for ; Tue, 5 Mar 2013 04:57:53 +0000 (UTC) Received: (qmail 3468 invoked by uid 500); 5 Mar 2013 04:57:53 -0000 Delivered-To: apmail-libcloud-commits-archive@libcloud.apache.org Received: (qmail 3373 invoked by uid 500); 5 Mar 2013 04:57:50 -0000 Mailing-List: contact commits-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 commits@libcloud.apache.org Received: (qmail 2980 invoked by uid 99); 5 Mar 2013 04:57:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 04:57:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 04:57:48 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2B1542388BA2; Tue, 5 Mar 2013 04:57:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1452670 - /libcloud/trunk/libcloud/common/gandi.py Date: Tue, 05 Mar 2013 04:57:29 -0000 To: commits@libcloud.apache.org From: tomaz@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130305045729.2B1542388BA2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tomaz Date: Tue Mar 5 04:57:28 2013 New Revision: 1452670 URL: http://svn.apache.org/r1452670 Log: Fix the argument weirdness. Second argument is 'secure' not weird and unused 'password'. Modified: libcloud/trunk/libcloud/common/gandi.py Modified: libcloud/trunk/libcloud/common/gandi.py URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/common/gandi.py?rev=1452670&r1=1452669&r2=1452670&view=diff ============================================================================== --- libcloud/trunk/libcloud/common/gandi.py (original) +++ libcloud/trunk/libcloud/common/gandi.py Tue Mar 5 04:57:28 2013 @@ -57,12 +57,12 @@ class GandiConnection(XMLRPCConnection, host = 'rpc.gandi.net' endpoint = '/xmlrpc/' - def __init__(self, key, password=None): + def __init__(self, key, secure=True): # Note: Method resolution order in this case is # XMLRPCConnection -> Connection and Connection doesn't take key as the # first argument so we specify a keyword argument instead. # Previously it was GandiConnection -> ConnectionKey so it worked fine. - super(GandiConnection, self).__init__(key=key) + super(GandiConnection, self).__init__(key=key, secure=secure) self.driver = BaseGandiDriver def request(self, method, *args):