mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
force_detach in volume model
This commit is contained in:
parent
d9ff6e3a71
commit
4b2b6ccef1
1 changed files with 10 additions and 0 deletions
|
@ -91,6 +91,16 @@ module Fog
|
|||
end
|
||||
end
|
||||
|
||||
def force_detach
|
||||
@server = nil
|
||||
@server_id = nil
|
||||
unless new_record?
|
||||
connection.detach_volume(@id, 'Force' => true)
|
||||
reload
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue