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:
parent
1833a204d0
commit
0fca49cf51
@ -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"\
|
||||
|
Loading…
x
Reference in New Issue
Block a user