You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2010/07/09 01:42:41 UTC
svn commit: r962274 - in /incubator/deltacloud/trunk/server/lib/deltacloud:
base_driver/base_driver.rb drivers/mock/mock_driver.rb
Author: lutter
Date: Thu Jul 8 23:42:40 2010
New Revision: 962274
URL: http://svn.apache.org/viewvc?rev=962274&view=rev
Log:
Remove debug prints in base driver and mock driver
Modified:
incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb
incubator/deltacloud/trunk/server/lib/deltacloud/drivers/mock/mock_driver.rb
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb?rev=962274&r1=962273&r2=962274&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb Thu Jul 8 23:42:40 2010
@@ -37,7 +37,6 @@ module Deltacloud
hw_profile = @hardware_profiles.find{|e| e.name == name}
return if hw_profile
hw_profile = ::Deltacloud::HardwareProfile.new( name, &block )
- puts hw_profile.inspect
@hardware_profiles << hw_profile
end
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/mock/mock_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/mock/mock_driver.rb?rev=962274&r1=962273&r2=962274&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/mock/mock_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/mock/mock_driver.rb Thu Jul 8 23:42:40 2010
@@ -230,14 +230,12 @@ class MockDriver < Deltacloud::BaseDrive
end
def stop_instance(credentials, id)
- puts "STOP INSTANCE #{id}"
instance_file = "#{@storage_root}/instances/#{id}.yml"
instance_yml = YAML.load( File.read( instance_file ) )
instance_yml[:state] = 'STOPPED'
File.open( instance_file, 'w' ) do |f|
f << YAML.dump( instance_yml )
end
- puts "returning #{instance_yml.inspect}"
Instance.new( instance_yml )
end