mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
bug #399: Added test for no arch and no default provided
This commit is contained in:
parent
d4ae41fe48
commit
95f7f03798
@ -168,6 +168,11 @@ int LibVirtDriver::deployment_description_kvm(
|
||||
if ( arch.empty() )
|
||||
{
|
||||
get_default("OS","ARCH",arch);
|
||||
|
||||
if ( arch.empty() )
|
||||
{
|
||||
goto error_arch;
|
||||
}
|
||||
}
|
||||
|
||||
if (emulator == "kvm")
|
||||
@ -628,6 +633,11 @@ error_memory:
|
||||
file.close();
|
||||
return -1;
|
||||
|
||||
error_arch:
|
||||
vm->log("VMM", Log::ERROR, "No ARCH defined and no default provided.");
|
||||
file.close();
|
||||
return -1;
|
||||
|
||||
error_boot:
|
||||
vm->log("VMM", Log::ERROR, "No BOOT device defined and no default provided.");
|
||||
file.close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user