1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-30 22:50:10 +03:00

bug #4550: error registering iso images in vcenter

This commit is contained in:
Javi Fontan 2016-06-13 15:34:38 +02:00
parent 5345972016
commit 8828624a60

View File

@ -106,13 +106,14 @@ def vmdk_info(file)
end
end
if get_type(file_path).strip == "application/octet-stream"
case get_type(file_path).strip
when "application/octet-stream", "application/x-iso9660-image"
return {
:type => :standalone,
:file => file_path,
:dir => File.dirname(file_path)
}
elsif get_type(file_path).strip == "text/plain"
when "text/plain"
info = {
:type => :flat,
:file => file_path,