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 db842ad8
authored
Feb 22, 2018
by
diegolima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Melhorar tratamento de tipo de produto
1 parent
f30e1156
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 @
db842ad
...
@@ -2,7 +2,8 @@ import urllib.request
...
@@ -2,7 +2,8 @@ import urllib.request
import
json
import
json
import
sys
import
sys
PRODUCT_TYPE
=
sys
.
argv
[
1
]
PRODUCT_TYPE
=
sys
.
argv
[
1
]
if
len
(
sys
.
argv
)
==
2
else
'none'
if
PRODUCT_TYPE
==
'compute'
:
if
PRODUCT_TYPE
==
'compute'
:
FCATALOG
=
'examples/azure.json'
FCATALOG
=
'examples/azure.json'
CATALOG
=
'https://azure.microsoft.com/api/v2/pricing/virtual-machines-base/calculator/?culture=pt-br&discount=mosp'
CATALOG
=
'https://azure.microsoft.com/api/v2/pricing/virtual-machines-base/calculator/?culture=pt-br&discount=mosp'
...
...
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