Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
electronics-python-library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oliver Polch
electronics-python-library
Commits
f2b072f5
Commit
f2b072f5
authored
3 months ago
by
ubuntu
Browse files
Options
Downloads
Patches
Plain Diff
epl gim init test
parent
ba29fb33
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
epl_gim/epl_gim_exporter.py
+15
-2
15 additions, 2 deletions
epl_gim/epl_gim_exporter.py
with
15 additions
and
2 deletions
epl_gim/epl_gim_exporter.py
+
15
−
2
View file @
f2b072f5
...
@@ -98,12 +98,25 @@ class GenericGimExporter:
...
@@ -98,12 +98,25 @@ class GenericGimExporter:
self
.
_logger
.
write_info
(
"
Connecting to redis...
"
)
self
.
_logger
.
write_info
(
"
Connecting to redis...
"
)
self
.
_redis
=
await
aioredis
.
from_url
(
self
.
_gim_redis_url
,
password
=
self
.
_gim_redis_pass
)
self
.
_redis
=
await
aioredis
.
from_url
(
self
.
_gim_redis_url
,
password
=
self
.
_gim_redis_pass
)
async
def
init_connect
(
self
):
async
def
init_connect
_test
(
self
):
"""
"""
Initially connect with gim
. To be called once the exporter object was created and initialized
.
Initially connect
test
with gim.
"""
"""
# GIM authentication
# GIM authentication
self
.
_logger
.
write_info
(
"
Authenticating with gim-gui, test
"
)
result
=
False
try
:
await
self
.
_gim
.
authorize
()
result
=
True
except
:
return
False
return
result
async
def
init_connect
(
self
):
"""
Initially connect with gim. To be called once the exporter object was created and initialized.
"""
# GIM authentication
# GIM authentication
self
.
_logger
.
write_info
(
"
Authenticating with gim-gui
"
)
self
.
_logger
.
write_info
(
"
Authenticating with gim-gui
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment