mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
Feature #3532: Compute capacity rightly for imported EC2 VMs
This commit is contained in:
1 parent
1833a204d0
commit
0fca49cf51
1 file changed
+2
@@ -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"\
|
||||
|
||||
Reference in new issue
Block a user