Commit cbb17bec by diegolima

Utilizar novo campo retornado pela API

1 parent e3eac6a1
Showing with 1 additions and 0 deletions
...@@ -49,4 +49,5 @@ with urllib.request.urlopen(CATALOG) as url: ...@@ -49,4 +49,5 @@ with urllib.request.urlopen(CATALOG) as url:
for region in REGIONS: for region in REGIONS:
cost = prod["prices"].get(region) cost = prod["prices"].get(region)
if cost: if cost:
cost = cost['value']
print("azure,%s,%s,%s,%s,%s,%s,%s" %(name, cores, memory, cost, region, os, sharedcores)) print("azure,%s,%s,%s,%s,%s,%s,%s" %(name, cores, memory, cost, region, os, sharedcores))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!