Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
http-request-component
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dasharatha.vamshi
http-request-component
Commits
821a238e
Commit
821a238e
authored
Feb 23, 2021
by
dasharatha.vamshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logstash
parent
8ae932fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
scripts/common/config_parser.py
scripts/common/config_parser.py
+7
-7
No files found.
scripts/common/config_parser.py
View file @
821a238e
...
...
@@ -26,13 +26,13 @@ ENABLE_LOGSTASH_LOG = os.environ.get("ENABLE_LOGSTASH_LOG", 'False').lower()
LOGSTASH_HOST
=
_config
.
get
(
'SERVICE_CONFIG'
,
{})
.
get
(
'LOGSTASH_HOST'
)
LOGSTASH_PORT
=
str
(
_config
.
get
(
'SERVICE_CONFIG'
,
{})
.
get
(
'LOGSTASH_PORT'
))
os
.
environ
[
'shared_volume'
]
=
'test'
os
.
environ
[
'method'
]
=
'GET'
os
.
environ
[
'url'
]
=
'https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/aluva?unitGroup=metric&key=QMCRVJEPKK8YD7BP83BZTMZ7A'
os
.
environ
[
'headers'
]
=
'{"content-type":"application/json"}'
os
.
environ
[
'payload'
]
=
'{}'
os
.
environ
[
'max_retries'
]
=
'1'
os
.
environ
[
'authentication'
]
=
'{"username":"vamshi","password":"sai"}'
#
os.environ['shared_volume'] = 'test'
#
os.environ['method'] = 'GET'
#
os.environ['url'] = 'https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/aluva?unitGroup=metric&key=QMCRVJEPKK8YD7BP83BZTMZ7A'
#
os.environ['headers'] = '{"content-type":"application/json"}'
#
os.environ['payload'] = '{}'
#
os.environ['max_retries'] = '1'
#
os.environ['authentication'] = '{"username":"vamshi","password":"sai"}'
config
=
{
"shared_volume"
:
os
.
environ
.
get
(
"shared_volume"
),
"method"
:
os
.
environ
.
get
(
"method"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment