Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99FE0DBF9 for ; Mon, 1 Oct 2012 08:37:06 +0000 (UTC) Received: (qmail 3661 invoked by uid 500); 1 Oct 2012 08:37:06 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 3421 invoked by uid 500); 1 Oct 2012 08:37:00 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 3359 invoked by uid 99); 1 Oct 2012 08:36:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2012 08:36:58 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jprovazn@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2012 08:36:50 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q918aRWd020618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 1 Oct 2012 04:36:28 -0400 Received: from localhost.localdomain (unused-4-226.brq.redhat.com [10.34.4.226]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q918aQvH014449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 1 Oct 2012 04:36:27 -0400 Message-ID: <50695609.7040708@redhat.com> Date: Mon, 01 Oct 2012 10:36:25 +0200 From: Jan Provaznik User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 MIME-Version: 1.0 To: dev@deltacloud.apache.org CC: mfojtik@redhat.com Subject: Re: [PATCH core] Client: Send API_PROVIDER when changing driver References: <1348742705-52245-1-git-send-email-mfojtik@redhat.com> In-Reply-To: <1348742705-52245-1-git-send-email-mfojtik@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 On 09/27/2012 12:45 PM, mfojtik@redhat.com wrote: > From: Michal Fojtik > > Because OpenStack driver now require authentication > for discover_entrypoint, we need to send API_PROVIDER string > together with new credenials. > > This patch should fix the problem. > > Signed-off-by: Michal fojtik > --- > client/lib/deltacloud.rb | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/client/lib/deltacloud.rb b/client/lib/deltacloud.rb > index 7caae95..c3efcde 100644 > --- a/client/lib/deltacloud.rb > +++ b/client/lib/deltacloud.rb > @@ -330,8 +330,9 @@ module DeltaCloud > > def use_driver(driver, opts={}) > if driver > - @api_driver = driver > + @api_driver = driver > @driver_name = driver > + @api_provider = opts[:provider] if opts[:provider] > @features, @entry_points = {}, {} > discover_entry_points > end > ACK