deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 5/6] Core: Minor fixes to base_driver and euca driver
Date Wed, 08 Aug 2012 12:54:38 GMT
From: Michal Fojtik <mfojtik@redhat.com>

* Removed unused local vars
* Wiped whitespace

Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/lib/deltacloud/drivers/base_driver.rb                  |    3 +--
 server/lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

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 )
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
-- 
1.7.10.2


Mime
View raw message