deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1203146 - /incubator/deltacloud/trunk/server/lib/deltacloud/drivers/sbc/sbc_driver.rb
Date Thu, 17 Nov 2011 10:50:52 GMT
Author: marios
Date: Thu Nov 17 10:50:51 2011
New Revision: 1203146

URL: http://svn.apache.org/viewvc?rev=1203146&view=rev
Log:
Fix filtering of realms for sbc driver

https://issues.apache.org/jira/browse/DTACLOUD-106

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/sbc/sbc_driver.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/sbc/sbc_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/sbc/sbc_driver.rb?rev=1203146&r1=1203145&r2=1203146&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/sbc/sbc_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/sbc/sbc_driver.rb Thu Nov 17
10:50:51 2011
@@ -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