#891: for test
This commit is contained in:
parent
645e0cbf24
commit
c0b932e749
@ -1,13 +1,15 @@
|
||||
module StackCommands
|
||||
extend self
|
||||
|
||||
RESULT_CODES = {
|
||||
stack_rolled_back: 1,
|
||||
unkown_status: 2,
|
||||
timeout: 3,
|
||||
error: 5
|
||||
}
|
||||
|
||||
def self.result_codes
|
||||
{
|
||||
stack_rolled_back: 1,
|
||||
unkown_status: 2,
|
||||
timeout: 3,
|
||||
error: 5
|
||||
}
|
||||
RESULT_CODES
|
||||
end
|
||||
|
||||
def self.result_code(code)
|
||||
@ -33,7 +35,6 @@ module StackCommands
|
||||
end
|
||||
case stack.stack_status
|
||||
when 'CREATE_IN_PROGRESS'
|
||||
out << "."
|
||||
out.flush
|
||||
when 'CREATE_COMPLETE'
|
||||
mongo.stack_update(stack)
|
||||
|
||||
@ -23,6 +23,7 @@ class StackBootstrapWorker < Worker
|
||||
begin
|
||||
stack = create_stack(stack_attrs)
|
||||
rescue StackCreatingError
|
||||
@out.puts "Stack creating error"
|
||||
return 1
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user