Commit 78d74fc2 authored by Manuel's avatar Manuel

fixed TokenManager

parent 1d8d00f3
# global import, red is normal don't worry
import network_constants
from env_info import is_running_locally
import os
import json
......@@ -21,9 +22,9 @@ class TokenManager:
def getToken(self) -> str:
if self._token == None:
try:
if is_running_locally():
credentials_path = '../../../modules/security/'
except KeyError:
else:
credentials_path = '/srv/articonf/'
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