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

Add options for keyname, security group and availability zone.

This commit is contained in:
Rupak Ganguly 2011-12-06 14:11:06 -05:00
parent 3c5c5f7a8d
commit eb1470121e

View file

@ -61,6 +61,16 @@ module Fog
}
end
end
if options['key_name']
data['server']['key_name'] = options['key_name']
end
if options['security_group']
data['server']['security_group'] = options['security_group']
end
if options['availability_zone']
data['server']['availability_zone'] = options['availability_zone']
end
request(
:body => MultiJson.encode(data),
:expects => 202,