From: Michal Fojtik <mfoj...@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 <mfoj...@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