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:
parent
5345972016
commit
8828624a60
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user