Skip to content
Snippets Groups Projects
Commit f2b072f5 authored by ubuntu's avatar ubuntu
Browse files

epl gim init test

parent ba29fb33
No related branches found
No related tags found
No related merge requests found
...@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment