mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|rds] Server#destroy argument is optional
By default Server#destroy does not take a final snapshot. This makes the Server#destroy API more consistent with other models.
This commit is contained in:
parent
c872eefe34
commit
3e5d48a1c5
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ module Fog
|
|||
state == 'available'
|
||||
end
|
||||
|
||||
def destroy(snapshot_identifier)
|
||||
def destroy(snapshot_identifier=nil)
|
||||
requires :id
|
||||
connection.delete_db_instance(id, snapshot_identifier, snapshot_identifier.nil?)
|
||||
true
|
||||
|
@ -102,4 +102,4 @@ module Fog
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue