mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[vmfusion|compute] fixed destroy function
This commit is contained in:
parent
1a576820ae
commit
cb1d5919f0
1 changed files with 8 additions and 1 deletions
|
@ -21,6 +21,13 @@ module Fog
|
|||
raise Fog::Errors::Error.new('Creating a new vm is not yet supported')
|
||||
end
|
||||
|
||||
def clone(name)
|
||||
requires :raw
|
||||
|
||||
::Fission::VM.clone(@raw.name,name)
|
||||
return connection.servers.get(name)
|
||||
end
|
||||
|
||||
def destroy(options={ :force => false})
|
||||
requires :raw
|
||||
|
||||
|
@ -30,7 +37,7 @@ module Fog
|
|||
end
|
||||
end
|
||||
|
||||
::Fission::VM.delete target_vm
|
||||
::Fission::VM.delete @raw.name
|
||||
end
|
||||
|
||||
def start
|
||||
|
|
Loading…
Reference in a new issue