pushed - verified by original reporter Andrea Decorte https://issues.apache.org/jira/browse/DTACLOUD-106
On 17/11/11 11:01, mar...@redhat.com wrote: > From: marios <mar...@redhat.com> > > https://issues.apache.org/jira/browse/DTACLOUD-106 > > Signed-off-by: marios <mar...@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 > > #