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:
parent
04062770a4
commit
2ff638b085
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue