Commit 78d74fc2 authored by Manuel's avatar Manuel

fixed TokenManager

parent 1d8d00f3
# global import, red is normal don't worry # global import, red is normal don't worry
import network_constants import network_constants
from env_info import is_running_locally
import os import os
import json import json
...@@ -21,9 +22,9 @@ class TokenManager: ...@@ -21,9 +22,9 @@ class TokenManager:
def getToken(self) -> str: def getToken(self) -> str:
if self._token == None: if self._token == None:
try: if is_running_locally():
credentials_path = '../../../modules/security/' credentials_path = '../../../modules/security/'
except KeyError: else:
credentials_path = '/srv/articonf/' credentials_path = '/srv/articonf/'
print("Looking for credentials at ... "+str(credentials_path)) print("Looking for credentials at ... "+str(credentials_path))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment