You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2013/02/13 10:44:32 UTC

git commit: Core: Fix the default value for 'root_type' HWP property (DTACLOUD-445)

Updated Branches:
  refs/heads/master d92088279 -> b8f07f45b


Core: Fix the default value for 'root_type' HWP property (DTACLOUD-445)

If the hardware_profile does support both transient and
persistent images, then don't advertise the root_type.


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/b8f07f45
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/b8f07f45
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/b8f07f45

Branch: refs/heads/master
Commit: b8f07f45b9fbdd6b94826f1d885f7e77017d61da
Parents: d920882
Author: Michal Fojtik <mf...@redhat.com>
Authored: Wed Jan 30 12:48:43 2013 +0100
Committer: Michal fojtik <mf...@redhat.com>
Committed: Wed Feb 13 10:43:48 2013 +0100

----------------------------------------------------------------------
 server/lib/deltacloud/models/hardware_profile.rb |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/b8f07f45/server/lib/deltacloud/models/hardware_profile.rb
----------------------------------------------------------------------
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