1
0
Fork 0
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:
Wesley Beary 2012-07-19 07:45:14 -07:00
commit 261b1a5877

View file

@ -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