deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 3/6] Fixed hardware_profile method to take Hash of arguments instead of fixed num.
Date Thu, 09 Dec 2010 14:40:32 GMT
From: Michal Fojtik <mfojtik@redhat.com>

---
 server/lib/deltacloud/base_driver/base_driver.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/lib/deltacloud/base_driver/base_driver.rb b/server/lib/deltacloud/base_driver/base_driver.rb
index ebd2078..aba13da 100644
--- a/server/lib/deltacloud/base_driver/base_driver.rb
+++ b/server/lib/deltacloud/base_driver/base_driver.rb
@@ -67,8 +67,8 @@ module Deltacloud
       filter_hardware_profiles(results, opts)
     end
 
-    def hardware_profile(credentials, name)
-      hardware_profiles(credentials, :name => name).first
+    def hardware_profile(credentials, opts={})
+      hardware_profiles(credentials, :name => opts[:id]).first
     end
 
     def filter_hardware_profiles(profiles, opts)
-- 
1.7.3.2


Mime
View raw message