Commit 9a88ccfe by diegolima

Filtrar instancias com tenancy shared e remover separador de milhares

1 parent 9a0d9c7d
Showing with 2 additions and 1 deletions
...@@ -60,9 +60,10 @@ with open(FCATALOG) as url: ...@@ -60,9 +60,10 @@ with open(FCATALOG) as url:
name = DATA['products'][product]['attributes']['instanceType'] name = DATA['products'][product]['attributes']['instanceType']
region = locationmap(DATA['products'][product]['attributes']['location']) region = locationmap(DATA['products'][product]['attributes']['location'])
cpu = DATA['products'][product]['attributes']['vcpu'] cpu = DATA['products'][product]['attributes']['vcpu']
memory = DATA['products'][product]['attributes']['memory'] memory = str(DATA['products'][product]['attributes']['memory']).replace(',','')
if PRODUCT_TYPE == 'compute': if PRODUCT_TYPE == 'compute':
os = DATA['products'][product]['attributes']['operatingSystem'] os = DATA['products'][product]['attributes']['operatingSystem']
if DATA['products'][product]['attributes']['tenancy'] == 'Shared':
print('aws,%s,%s,%s,%s,%s,%s' % (name, cpu, memory, cost, region, os)) print('aws,%s,%s,%s,%s,%s,%s' % (name, cpu, memory, cost, region, os))
elif PRODUCT_TYPE == 'database': elif PRODUCT_TYPE == 'database':
os = DATA['products'][product]['attributes']['databaseEngine'] os = DATA['products'][product]['attributes']['databaseEngine']
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!