incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH] Fix filtering of realms for sbc driver
Date Thu, 17 Nov 2011 09:01:23 GMT
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
 
   #
-- 
1.7.6.4


Mime
View raw message