1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

Development: Fix Ceph CDROM

This commit is contained in:
Ruben S. Montero 2016-06-08 16:43:52 +02:00
parent 4e40da1359
commit 0b2e644a18
2 changed files with 3 additions and 2 deletions

View File

@ -149,6 +149,7 @@ void Datastore::disk_attribute(
if (VirtualMachine::is_volatile(disk))
{
disk->replace("DISK_TYPE", Image::disk_type_to_str(get_disk_type()));
disk->replace("TYPE", Image::disk_type_to_str(get_disk_type()));
}
}

View File

@ -530,9 +530,9 @@ int LibVirtDriver::deployment_description_kvm(
<< "\t\t\t</auth>\n";
}
}
else if ( type == "RBD" || type == "RBD_CDROM" || disk_type == "RBD" )
else if ( type == "RBD" || type == "RBD_CDROM" )
{
if (type == "RBD" || disk_type == "RBD")
if ( type == "RBD" )
{
file << "\t\t<disk type='network' device='disk'>" << endl;
}