mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1046 from maestrodev/vsphere
Stop vSphere vms before destroying, or destroy will fail
This commit is contained in:
commit
261b1a5877
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ module Fog
|
|||
|
||||
def destroy(options = {})
|
||||
requires :instance_uuid
|
||||
stop if ready? # need to turn it off before destroying
|
||||
connection.vm_destroy('instance_uuid' => instance_uuid)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue