mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-18 02:50:09 +03:00
B #: make volatile disks TYPE case insensitive (#645)
This commit is contained in:
parent
25907eae22
commit
496a63de02
@ -202,11 +202,16 @@ void Datastore::disk_attribute(
|
|||||||
* 3. DRIVER in DISK
|
* 3. DRIVER in DISK
|
||||||
* 4. Default set to "raw"
|
* 4. Default set to "raw"
|
||||||
*/
|
*/
|
||||||
if (disk->vector_value("TYPE") != "CDROM" && disk->is_volatile())
|
|
||||||
|
string type = disk->vector_value("TYPE");
|
||||||
|
|
||||||
|
one_util::toupper(type);
|
||||||
|
|
||||||
|
if (type!= "CDROM" && disk->is_volatile())
|
||||||
{
|
{
|
||||||
string driver = get_ds_driver();
|
string driver = get_ds_driver();
|
||||||
|
|
||||||
if (disk->vector_value("TYPE") == "FS") /* Volatile Datablock */
|
if (type == "FS") /* Volatile Datablock */
|
||||||
{
|
{
|
||||||
if (!driver.empty()) /* DRIVER in TM_MAD_CONF or DS Template */
|
if (!driver.empty()) /* DRIVER in TM_MAD_CONF or DS Template */
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user