ec2 capacities FIX

This commit is contained in:
semedi authored and Javi Fontan committed 2017-07-20 11:18:24 +02:00
1 parent 22d31c2e19
commit 62c8ed081e
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -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))
}
+1 -2
View File
@@ -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