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:
parent
89ae9e1567
commit
938af76e92
1 changed files with 2 additions and 3 deletions
|
@ -20,7 +20,6 @@ module Fog
|
||||||
attribute :platform
|
attribute :platform
|
||||||
attribute :cost
|
attribute :cost
|
||||||
attribute :rootpassword
|
attribute :rootpassword
|
||||||
attribute :keepip
|
|
||||||
attribute :state
|
attribute :state
|
||||||
attribute :iplist
|
attribute :iplist
|
||||||
attribute :ipversion
|
attribute :ipversion
|
||||||
|
@ -46,9 +45,9 @@ module Fog
|
||||||
service.reboot(:serverid => identity)
|
service.reboot(:serverid => identity)
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy(options = {})
|
||||||
requires :identity
|
requires :identity
|
||||||
service.destroy(:serverid => identity, :keepip => keepip)
|
service.destroy(options.merge!({:serverid => identity}))
|
||||||
end
|
end
|
||||||
|
|
||||||
def save
|
def save
|
||||||
|
|
Loading…
Reference in a new issue