mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
Bug #1232: Remove the constraint to have at least one OS image
This commit is contained in:
1 parent
63b4dd8467
commit
d209fbfee6
1 file changed
-9
@@ -992,11 +992,6 @@ int VirtualMachine::get_disk_images(string& error_str)
|
||||
}
|
||||
}
|
||||
|
||||
if (os_disk.empty())
|
||||
{
|
||||
goto error_no_os;
|
||||
}
|
||||
|
||||
assign_disk_targets(os_disk, used_targets);
|
||||
assign_disk_targets(cdrom_disks, used_targets);
|
||||
assign_disk_targets(datablock_disks, used_targets);
|
||||
@@ -1007,10 +1002,6 @@ error_max_disks:
|
||||
error_str = "Exceeded the maximum number of disks (20)";
|
||||
return -1;
|
||||
|
||||
error_no_os:
|
||||
error_str = "There is no OS image defined";
|
||||
goto error_common;
|
||||
|
||||
error_duplicated_target:
|
||||
oss << "Two disks have defined the same target " << target;
|
||||
error_str = oss.str();
|
||||
|
||||
Reference in new issue
Block a user