mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
1 parent
1e22db4fb2
commit
afbf0e472b
1 file changed
+9
-2
@@ -150,6 +150,14 @@ int VirtualMachineManager::validate_raw(const Template * vmt, string& error_str)
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool validate;
|
||||
raw->vector_value("VALIDATE", validate, true);
|
||||
|
||||
if (!validate)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
string value = raw->vector_value("TYPE");
|
||||
one_util::tolower(value);
|
||||
|
||||
@@ -163,9 +171,8 @@ int VirtualMachineManager::validate_raw(const Template * vmt, string& error_str)
|
||||
|
||||
value = raw->vector_value("DATA");
|
||||
|
||||
return vmd->validate_raw(value, error_str);
|
||||
|
||||
return 0;
|
||||
return vmd->validate_raw(value, error_str);
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
Reference in new issue
Block a user