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 9a88ccfe
authored
Nov 06, 2017
by
diegolima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filtrar instancias com tenancy shared e remover separador de milhares
1 parent
9a0d9c7d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
aws_parser.py
aws_parser.py
View file @
9a88ccf
...
...
@@ -60,9 +60,10 @@ 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'
]
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'
]
...
...
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