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:
parent
d582636e47
commit
770728fb21
@ -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
|
||||
//---------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user