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

bug #810: Gets device prefix from defaults if DEV_PREFIX attribute is removed from image template

This commit is contained in:
Ruben S. Montero 2011-09-16 12:23:22 +02:00
parent d582636e47
commit 770728fb21

View File

@ -433,6 +433,11 @@ int Image::disk_attribute( VectorAttribute * disk,
get_template_attribute("DEV_PREFIX", prefix);
if (prefix.empty())//Removed from image template, get it again from defaults
{
prefix = ImagePool::default_dev_prefix();
}
//---------------------------------------------------------------------------
// BASE DISK ATTRIBUTES
//---------------------------------------------------------------------------