Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Diego Lima
/
aws-price-parser
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8a510c9e
authored
Feb 20, 2018
by
Diego Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adicionar informacoes de cores compartilhados
1 parent
5bbad689
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
azure_parser.py
azure_parser.py
View file @
8a510c9
...
...
@@ -38,7 +38,8 @@ with urllib.request.urlopen(CATALOG) as url:
break
cores
=
prod
[
"cores"
]
memory
=
str
(
prod
[
"ram"
])
+
" GB"
sharedcores
=
'shared'
if
name
[:
1
]
==
'b'
else
'nonshared'
for
region
in
REGIONS
:
cost
=
prod
[
"prices"
]
.
get
(
region
)
if
cost
:
print
(
"azure,
%
s,
%
s,
%
s,
%
s,
%
s,
%
s
"
%
(
name
,
cores
,
memory
,
cost
,
region
,
o
s
))
print
(
"azure,
%
s,
%
s,
%
s,
%
s,
%
s,
%
s
,
%
s"
%
(
name
,
cores
,
memory
,
cost
,
region
,
os
,
sharedcore
s
))
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment