mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
add force option to auto scaling group destroy method
This commit is contained in:
parent
ff31140f54
commit
00308e8e95
1 changed files with 6 additions and 2 deletions
|
@ -121,9 +121,13 @@ module Fog
|
|||
# self
|
||||
#end
|
||||
|
||||
def destroy
|
||||
def destroy(force=false)
|
||||
requires :id
|
||||
connection.delete_auto_scaling_group(id)
|
||||
|
||||
opts = {}
|
||||
opts.merge({'ForceDelete' => true}) if force
|
||||
|
||||
connection.delete_auto_scaling_group(id, opts)
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
Loading…
Add table
Reference in a new issue