deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [2/7] git commit: Core: Minor fixes to base_driver and euca driver
Date Fri, 10 Aug 2012 07:37:45 GMT
Core: Minor fixes to base_driver and euca driver

* Removed unused local vars
* Wiped whitespace


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

Branch: refs/heads/master
Commit: 809714a2d9ff0db335cf8c056f9e207231f76c02
Parents: 602d5ea
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Wed Aug 8 14:53:01 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Fri Aug 10 09:38:21 2012 +0200

----------------------------------------------------------------------
 server/lib/deltacloud/drivers/base_driver.rb       |    3 +--
 .../drivers/eucalyptus/eucalyptus_driver.rb        |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/809714a2/server/lib/deltacloud/drivers/base_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/base_driver.rb b/server/lib/deltacloud/drivers/base_driver.rb
index 21e4382..6687a24 100644
--- a/server/lib/deltacloud/drivers/base_driver.rb
+++ b/server/lib/deltacloud/drivers/base_driver.rb
@@ -75,7 +75,7 @@ module Deltacloud
       return if hw_profile
       hw_profile = ::Deltacloud::HardwareProfile.new( name, &block )
       @hardware_profiles << hw_profile
-      hw_params = hw_profile.params
+      hw_profile.params
       # FIXME: Features
       #unless hw_params.empty?
       #  feature :instances, :hardware_profiles do
@@ -145,7 +145,6 @@ module Deltacloud
 
     def instance_actions_for(state)
       actions = []
-      state_key = state.downcase.to_sym
       states = instance_state_machine.states()
       current_state = states.find{|e| e.name == state.underscore.to_sym }
       if ( current_state )

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/809714a2/server/lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb b/server/lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb
index b87a026..7586052 100644
--- a/server/lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb
+++ b/server/lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb
@@ -71,7 +71,7 @@ module Deltacloud
         end
 
         def default_image_owner
-          "self" 
+          "self"
         end
 
         def default_image_type


Mime
View raw message