Skip to content

Commit

Permalink
Small fix for generate-ec2-properties.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rbvermaa committed Dec 13, 2016
1 parent d7b3a07 commit f60ee22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nix/generate-ec2-properties.py
Expand Up @@ -15,7 +15,7 @@
ebsOptimized = 'ebsOptimized' in product
instanceType = product['instanceType']
cores = product['vcpu']
memory = int(float(product['memory'].split(' ')[0]) * 1024)
memory = int(float(product['memory'].replace(',','').split(' ')[0]) * 1024)
if instanceType in instanceTypes and not ebsOptimized:
continue
instanceTypes[product['instanceType']] = ' "'+instanceType+'" = { cores = '+cores+'; memory = '+str(memory)+'; allowsEbsOptimized = '+('true' if ebsOptimized else 'false')+'; };'
Expand Down

0 comments on commit f60ee22

Please sign in to comment.