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

fix for run_instances, make ec2 raise errors again

This commit is contained in:
Wesley Beary 2009-07-22 22:55:17 -07:00
parent 0171c8854f
commit 4ffa563f34
2 changed files with 2 additions and 3 deletions

View file

@ -51,7 +51,6 @@ require "#{requests_directory}/revoke_security_group_ingress"
require "#{requests_directory}/run_instances" require "#{requests_directory}/run_instances"
require "#{requests_directory}/terminate_instances" require "#{requests_directory}/terminate_instances"
module Fog module Fog
module AWS module AWS
class EC2 class EC2
@ -116,7 +115,7 @@ module Fog
response = @connection.request({ response = @connection.request({
:body => body, :body => body,
# :expects => 200, :expects => 200,
:headers => { 'Content-Type' => 'application/x-www-form-urlencoded' }, :headers => { 'Content-Type' => 'application/x-www-form-urlencoded' },
:host => @host, :host => @host,
:method => 'POST', :method => 'POST',

View file

@ -66,7 +66,7 @@ module Fog
'ImageId' => image_id, 'ImageId' => image_id,
'MinCount' => min_count, 'MinCount' => min_count,
'MaxCount' => max_count, 'MaxCount' => max_count,
'AvailabilityZone' => options[:availability_zone], 'Placement.AvailabilityZone' => options[:availability_zone],
'Data' => options[:data], 'Data' => options[:data],
'DeviceName' => options[:device_name], 'DeviceName' => options[:device_name],
'Encoding' => options[:encoding], 'Encoding' => options[:encoding],