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

feature 2399: Do not clone cdrom images

This commit is contained in:
Javi Fontan 2013-10-24 10:58:31 +02:00
parent a8c0702400
commit 97c0376e62

View File

@ -560,7 +560,15 @@ int Image::disk_attribute( VectorAttribute * disk,
}
else
{
disk->replace("CLONE", "YES");
if ( type == CDROM )
{
disk->replace("CLONE", "NO");
}
else
{
disk->replace("CLONE", "YES");
}
disk->replace("SAVE", "NO");
}