Commit 9a88ccfe by diegolima

Filtrar instancias com tenancy shared e remover separador de milhares

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