mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
B #: fix image str_to_disk_type method (#97)
(cherry picked from commit 3cec98a11f867f94f8b4230364ae134d77168989)
This commit is contained in:
parent
d7ded2d9a1
commit
016876407d
@ -798,30 +798,42 @@ Image::DiskType Image::str_to_disk_type(string& s_disk_type)
|
||||
{
|
||||
type = Image::FILE;
|
||||
}
|
||||
else if (s_disk_type == "BLOCK")
|
||||
{
|
||||
type = Image::BLOCK;
|
||||
}
|
||||
else if (s_disk_type == "ISCSI")
|
||||
{
|
||||
type = Image::ISCSI;
|
||||
}
|
||||
else if (s_disk_type == "CDROM")
|
||||
{
|
||||
type = Image::CD_ROM;
|
||||
}
|
||||
else if (s_disk_type == "BLOCK")
|
||||
{
|
||||
type = Image::BLOCK;
|
||||
}
|
||||
else if (s_disk_type == "RBD")
|
||||
{
|
||||
type = Image::RBD;
|
||||
}
|
||||
else if (s_disk_type == "SHEEPDOG")
|
||||
else if (s_disk_type == "RBD_CDROM")
|
||||
{
|
||||
type = Image::SHEEPDOG;
|
||||
type = Image::RBD_CDROM;
|
||||
}
|
||||
else if (s_disk_type == "GLUSTER")
|
||||
{
|
||||
type = Image::GLUSTER;
|
||||
}
|
||||
else if (s_disk_type == "GLUSTER_CDROM")
|
||||
{
|
||||
type = Image::GLUSTER_CDROM;
|
||||
}
|
||||
else if (s_disk_type == "SHEEPDOG")
|
||||
{
|
||||
type = Image::SHEEPDOG;
|
||||
}
|
||||
else if (s_disk_type == "SHEEPDOG_CDROM")
|
||||
{
|
||||
type = Image::SHEEPDOG_CDROM;
|
||||
}
|
||||
else if (s_disk_type == "ISCSI")
|
||||
{
|
||||
type = Image::ISCSI;
|
||||
}
|
||||
|
||||
return type;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user