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 2012/08/08 14:54:38 UTC
[PATCH core 5/6] Core: Minor fixes to base_driver and euca driver
From: Michal Fojtik <mf...@redhat.com>
* Removed unused local vars
* Wiped whitespace
Signed-off-by: Michal fojtik <mf...@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