1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

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

(cherry picked from commit 500a7d80905edc4e1dfaef9094d94f057cfab33f)
This commit is contained in:
Carlos Martín 2012-07-04 17:23:53 +02:00
parent fb42cdd8ce
commit dbebf6a10e

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));