diff --git a/lib/fog/glesys/models/compute/server.rb b/lib/fog/glesys/models/compute/server.rb index 3e1e141c1..8af9bd922 100644 --- a/lib/fog/glesys/models/compute/server.rb +++ b/lib/fog/glesys/models/compute/server.rb @@ -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