mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Feature #1288: Similar fix to commit:20d76f92, make quotas work for VMs migrated from previous verions
This commit is contained in:
1 parent
921aa55b49
commit
500a7d8090
1 file changed
+2
-4
@@ -57,14 +57,12 @@ bool QuotaVirtualMachine::check(Template * tmpl, string& error)
|
||||
|
||||
if ( tmpl->get("MEMORY", memory) == false )
|
||||
{
|
||||
error = "MEMORY not defined for VM";
|
||||
return false;
|
||||
memory = 0;
|
||||
}
|
||||
|
||||
if ( tmpl->get("CPU", cpu) == false )
|
||||
{
|
||||
error = "CPU not defined for VM";
|
||||
return false;
|
||||
cpu = 0;
|
||||
}
|
||||
|
||||
vm_request.insert(make_pair("VMS",1));
|
||||
|
||||
Reference in new issue
Block a user