Project

General

Profile

« Previous | Next » 

Revision 0601db70

Added by Timo Goebel over 7 years ago

fixes #18366 - vmware: delete vm only if created with errors

(cherry picked from commit b7cb8e5f47b6d10715cffc49070eee931d712637)

View differences:

app/models/compute_resources/foreman/model/vmware.rb
end
rescue Fog::Errors::Error => e
Foreman::Logging.exception("Unhandled VMware error", e)
destroy_vm vm.id if vm
destroy_vm vm.id if vm && vm.id
raise e
end

Also available in: Unified diff