You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2010/12/09 15:40:32 UTC
[PATCH core 3/6] Fixed hardware_profile method to take Hash of arguments instead of fixed num.
From: Michal Fojtik <mf...@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