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 :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
|
||||
|
|
Loading…
Reference in a new issue