deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH] Deltacloud - add hardware profiles to RAX/Gogrid Image - json bugs out DTACLOUD-439
Date Mon, 28 Jan 2013 17:03:13 GMT
From: marios <marios@redhat.com>

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

Signed-off-by: marios <marios@redhat.com>
---
 server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb       | 2 ++
 server/lib/deltacloud/drivers/rackspace/rackspace_driver.rb | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb b/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
index eb0047c..881ef1e 100644
--- a/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
+++ b/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
@@ -86,6 +86,8 @@ module Deltacloud
               end
             end
           end
+          profiles = hardware_profiles(credentials)
+          imgs.each { |img| img.hardware_profiles = profiles }
           imgs = filter_on( imgs, :architecture, opts )
           imgs.sort_by{|e| [e.owner_id, e.description]}
         end
diff --git a/server/lib/deltacloud/drivers/rackspace/rackspace_driver.rb b/server/lib/deltacloud/drivers/rackspace/rackspace_driver.rb
index fb080ea..8082767 100644
--- a/server/lib/deltacloud/drivers/rackspace/rackspace_driver.rb
+++ b/server/lib/deltacloud/drivers/rackspace/rackspace_driver.rb
@@ -62,6 +62,8 @@ class RackspaceDriver < Deltacloud::BaseDriver
         )
       end
     end
+    profiles = hardware_profiles(credentials)
+    results.each { |img| img.hardware_profiles = profiles }
     filter_on( results, :id, opts )
   end
 
-- 
1.7.11.7


Mime
View raw message