1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Feature #3532: Compute capacity rightly for imported EC2 VMs

This commit is contained in:
Tino Vazquez 2015-04-07 18:09:34 +02:00
parent 1833a204d0
commit 0fca49cf51

View File

@ -577,6 +577,8 @@ private
def vm_to_one(instance)
cpu, mem = instance_type_capacity(instance.instance_type)
mem = mem.to_i / 1024 # Memory for templates expressed in MB
str = "NAME = \"Instance from #{instance.id}\"\n"\
"CPU = \"#{cpu}\"\n"\
"vCPU = \"#{cpu}\"\n"\