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:
parent
3c5c5f7a8d
commit
eb1470121e
1 changed files with 10 additions and 0 deletions
|
@ -61,6 +61,16 @@ module Fog
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
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(
|
request(
|
||||||
:body => MultiJson.encode(data),
|
:body => MultiJson.encode(data),
|
||||||
:expects => 202,
|
:expects => 202,
|
||||||
|
|
Loading…
Reference in a new issue