X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcore%2Fauth.py;h=4627a30c7a9e5d218a68149506723e0f166b193c;hb=refs%2Fchanges%2F00%2F7400%2F2;hp=fa80256e1e90516cda0693fd05d2651516fde244;hpb=9608081aa7b0ff8823ddbcd1144948ee0369160e;p=osm%2FMON.git diff --git a/osm_mon/core/auth.py b/osm_mon/core/auth.py index fa80256..4627a30 100644 --- a/osm_mon/core/auth.py +++ b/osm_mon/core/auth.py @@ -23,15 +23,21 @@ ## import json +import logging + +from osm_mon.core.config import Config from osm_mon.core.database import VimCredentials, DatabaseManager +log = logging.getLogger(__name__) + class AuthManager: - def __init__(self): - self.database_manager = DatabaseManager() + def __init__(self, config: Config): + self.database_manager = DatabaseManager(config) def store_auth_credentials(self, creds_dict): + log.info(creds_dict) credentials = VimCredentials() credentials.uuid = creds_dict['_id'] credentials.name = creds_dict['name']