incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 3/3] Added missing state to Image in Mock driver
Date Thu, 02 Jun 2011 10:19:10 GMT
From: Michal Fojtik <mfojtik@redhat.com>

Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/lib/deltacloud/drivers/mock/mock_driver.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/server/lib/deltacloud/drivers/mock/mock_driver.rb b/server/lib/deltacloud/drivers/mock/mock_driver.rb
index 83a7404..df2fff0 100644
--- a/server/lib/deltacloud/drivers/mock/mock_driver.rb
+++ b/server/lib/deltacloud/drivers/mock/mock_driver.rb
@@ -121,6 +121,7 @@ class MockDriver < Deltacloud::BaseDriver
       image = YAML.load( File.read( image_file ) )
       image[:id] = File.basename( image_file, ".yml" )
       image[:name] = image[:description]
+      image[:state] = "AVAILABLE"
       images << Image.new( image )
     end
     images = filter_on( images, :id, opts )
-- 
1.7.4.1


Mime
View raw message