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

[glesys] added options to resuse ip and/or ipv6 and description

Adding fog-suport for optional arguments in Glesys::Server#save to
support
https://github.com/GleSYS/API/wiki/functions_server#wiki-servercreate .
This commit is contained in:
Andreas Josephson 2013-08-01 21:19:25 +02:00
parent 04062770a4
commit 2ff638b085

View file

@ -67,6 +67,12 @@ module Fog
:rootpassword => rootpassword,
:transfer => transfer || "500",
}
# optional options when creating a server:
[:ip, :ipv6, :description].each do |k|
options[k] = attributes[k] if attributes[k]
end
data = service.create(options)
merge_attributes(data.body['response']['server'])
data.status == 200 ? true : false