Feature #1288: Similar fix to commit:20d76f92, make quotas work for VMs migrated from previous verions

(cherry picked from commit 500a7d8090)
This commit is contained in:
Carlos Martín committed 2012-07-04 17:28:59 +02:00
1 parent fb42cdd8ce
commit dbebf6a10e
1 file changed
+2 -4
+2 -4
View File
@@ -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));