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 2013/01/30 12:51:55 UTC
[PATCH core] Core: Fix the default value for 'root_type' HWP property (DTACLOUD-445)
From: Michal Fojtik <mf...@redhat.com>
If the hardware_profile does support both transient and
persistent images, then don't advertise the root_type.
Signed-off-by: Michal fojtik <mf...@redhat.com>
---
server/lib/deltacloud/models/hardware_profile.rb | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/server/lib/deltacloud/models/hardware_profile.rb b/server/lib/deltacloud/models/hardware_profile.rb
index 9d76a2e..8e1bfc5 100644
--- a/server/lib/deltacloud/models/hardware_profile.rb
+++ b/server/lib/deltacloud/models/hardware_profile.rb
@@ -31,7 +31,7 @@ module Deltacloud
class << self
def property(prop)
define_method(prop) do |*args|
- values, opts, *ignored = *args
+ values, opts, _ = *args
unless values.nil?
@properties[prop] = Property.new(prop, values, opts || {})
end
@@ -52,9 +52,6 @@ module Deltacloud
@properties = {}
super(:id => profile_id)
result = instance_eval(&block) if block_given?
- unless @properties.include? :root_type
- root_type(:transient)
- end
@name ||= profile_id
result
end
--
1.8.1