This will keep Instances from dropping out of the 'in process'
list because agent returns 'created' rather than 'waiting'.
---
 src/app/models/image.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/models/image.rb b/src/app/models/image.rb
index b1fa6d7..7bc5076 100644
--- a/src/app/models/image.rb
+++ b/src/app/models/image.rb
@@ -40,13 +40,13 @@ class Image < ActiveRecord::Base
   SEARCHABLE_COLUMNS = %w(name)
 
   STATE_QUEUED = 'queued'
-  STATE_WAITING = 'waiting'
+  STATE_CREATED = 'created'
   STATE_BUILDING = 'building'
   STATE_COMPLETE = 'complete'
   STATE_CANCELED = 'canceled'
   STATE_FAILED = 'failed'
 
-  ACTIVE_STATES = [ STATE_QUEUED, STATE_WAITING, STATE_BUILDING, STATE_FAILED ]
+  ACTIVE_STATES = [ STATE_QUEUED, STATE_CREATED, STATE_BUILDING ]
 
   def self.new_if_not_exists(data)
     unless find_by_template_id(data[:template_id], :conditions => {:target => 
data[:target]})
-- 
1.7.2.3

_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to