1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[bbg] create_block should raise errors on failure

This commit is contained in:
geemus 2010-06-02 08:23:12 -07:00
parent b6dd99aaa5
commit b8ce545f66
3 changed files with 1 additions and 5 deletions

View file

@ -38,7 +38,6 @@ module Fog
end
def ready?
raise Fog::Bluebox::BlockInstantiationError, "Error creating block #{self.id}" if @status == 'error'
@status == 'running'
end

View file

@ -29,9 +29,6 @@ module Fog
@response['image_id'] = @value
when 'product'
@scope = nil
when 'error' # An error occurred
@response['status'] = 'error'
@response[name] = @value
end
end

View file

@ -30,7 +30,7 @@ DATA
request(
:body => data,
:expects => [200, 409],
:expects => 200,
:method => 'POST',
:parser => Fog::Parsers::Bluebox::CreateBlock.new,
:path => '/api/blocks.xml'