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

[Glesys] Attribute :keepip removed from server model

The parameter :keepip should be passed to the destroy method, it is not
available as a attribute on the server object.
This commit is contained in:
Simon Gate 2013-01-27 12:01:32 +01:00
parent 89ae9e1567
commit 938af76e92

View file

@ -20,7 +20,6 @@ module Fog
attribute :platform
attribute :cost
attribute :rootpassword
attribute :keepip
attribute :state
attribute :iplist
attribute :ipversion
@ -46,9 +45,9 @@ module Fog
service.reboot(:serverid => identity)
end
def destroy
def destroy(options = {})
requires :identity
service.destroy(:serverid => identity, :keepip => keepip)
service.destroy(options.merge!({:serverid => identity}))
end
def save