mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 05:27:20 +09:00
Do not show stacktrace to users
This commit is contained in:
1 parent
c2b0178066
commit
d379600a3e
1 file changed
+1
-1
@@ -64,7 +64,7 @@ def self.import_wild(host_id, vm_ref, one_vm, template)
|
||||
e["TEMPLATE/VCENTER_INSTANCE_ID"] == vc_uuid
|
||||
end.first
|
||||
|
||||
raise "DS with ref #{ds_ref} is not imported in OpenNebula, aborting Wild VM import." if !ds_one
|
||||
return OpenNebula::Error.new("DS with ref #{ds_ref} is not imported in OpenNebula, aborting Wild VM import.") if !ds_one
|
||||
|
||||
rc = one_vm.allocate(template)
|
||||
return rc if OpenNebula.is_error?(rc)
|
||||
|
||||
Reference in new issue
Block a user