mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
ec2 capacities FIX
This commit is contained in:
parent
22d31c2e19
commit
62c8ed081e
@ -126,7 +126,7 @@ module Migrator
|
||||
|
||||
capacity = doc.create_element("CAPACITY")
|
||||
host_info["capacity"].each { |k, v|
|
||||
name = k[0..1] << k[3..k.length-1]
|
||||
name = k.gsub(".", "_")
|
||||
capacity.add_child(doc.create_element(name.upcase, v))
|
||||
}
|
||||
|
||||
|
@ -454,8 +454,7 @@ class EC2Driver
|
||||
# Parse template instance type into
|
||||
# Amazon ec2 format (M1SMALL => m1.small)
|
||||
def parse_inst_type(type)
|
||||
fixed_type = type[0..1]<< '.' << type[2..type.length+1]
|
||||
return fixed_type.downcase
|
||||
return type.downcase.gsub("_", ".")
|
||||
end
|
||||
|
||||
# Get the info of all the EC2 instances. An EC2 instance must include
|
||||
|
Loading…
x
Reference in New Issue
Block a user