fixed, without roll_back

This commit is contained in:
amartynov 2015-08-19 19:34:46 +03:00
parent 02d1ff3ad3
commit ee2e193a8b
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ module StackCommands
puts stack.stack_status puts stack.stack_status
if stack.stack_status != 'CREATE_IN_PROGRESS' if stack.stack_status != 'CREATE_IN_PROGRESS'
mongo.stack_update(stack) mongo.stack_update(stack)
out << "Stack '#{stack.id}' status is now #{stack.stack_status}\n" out << "\nStack '#{stack.id}' status is now #{stack.stack_status}\n"
out.flush out.flush
break break
end end

View File

@ -187,11 +187,11 @@ module Devops
@out << "\n" + msg + "\n" @out << "\n" + msg + "\n"
end end
else else
msg = "Failed while bootstraping server with id '#{s.id}'" msg = "Failed while bootstraping server with id '#{@server.id}'"
DevopsLogger.logger.error msg DevopsLogger.logger.error msg
@out << "\n" + msg + "\n" @out << "\n" + msg + "\n"
@out << roll_back # @out << roll_back
mongo.server_delete @server.id # mongo.server_delete @server.id
end end
return status return status
end end