incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "marios@redhat.com" <mandr...@redhat.com>
Subject Re: [PATCH] Fix filtering of realms for sbc driver
Date Thu, 17 Nov 2011 10:58:53 GMT
pushed - verified by original reporter Andrea Decorte
https://issues.apache.org/jira/browse/DTACLOUD-106

On 17/11/11 11:01, marios@redhat.com wrote:
> From: marios <marios@redhat.com>
> 
> https://issues.apache.org/jira/browse/DTACLOUD-106
> 
> Signed-off-by: marios <marios@redhat.com>
> ---
>  server/lib/deltacloud/drivers/sbc/sbc_driver.rb |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/server/lib/deltacloud/drivers/sbc/sbc_driver.rb b/server/lib/deltacloud/drivers/sbc/sbc_driver.rb
> index 90f566d..c7b109e 100644
> --- a/server/lib/deltacloud/drivers/sbc/sbc_driver.rb
> +++ b/server/lib/deltacloud/drivers/sbc/sbc_driver.rb
> @@ -51,7 +51,8 @@ class SBCDriver < Deltacloud::BaseDriver
>    def realms(credentials, opts={})
>      sbc_client = new_client(credentials)
>      doc = sbc_client.list_locations
> -    doc.xpath('ns2:DescribeLocationsResponse/Location').map { |loc| convert_location(loc)
}
> +    realms = doc.xpath('ns2:DescribeLocationsResponse/Location').map { |loc| convert_location(loc)
}
> +    realms = filter_on(realms, :id, opts)
>    end
>  
>    #


Mime
View raw message