Bläddra i källkod

correct api path

Chris Stradtman 2 år sedan
förälder
incheckning
0eea4b682c

+ 1 - 1
src/ll_sdk/base_client.py

@@ -75,7 +75,7 @@ class BaseRestAuthClient(object):
     def __init__(self, hostname, context, username, api_shared_key, schema, port, default_headers=None):
         self.username = username
         self.api_shared_key = api_shared_key
-        self.logger = logging.getLogger('sdk.' + self.__class__.__name__)
+        self.logger = logging.getLogger('ll_sdk.' + self.__class__.__name__)
         self.base = build_base_url(hostname, context, port, schema)
         self.auth = LlnwUserAuth(self.username, self.api_shared_key)
         self.default_headers = default_headers or {}

+ 1 - 1
src/ll_sdk/config_api.py

@@ -3,7 +3,7 @@
 
 import json
 from urllib.parse import parse_qs
-from sdk.base_client import BaseRestAuthClient
+from ll_sdk.base_client import BaseRestAuthClient
 
 __all__ = ['ConfigApiClient']
 __docformat__ = 'restructuredtext'

+ 2 - 2
src/ll_sdk/realtime_reporting_api.py

@@ -2,8 +2,8 @@
 # -*- coding: utf-8 -*-
 
 import json
-from sdk.base_client import BaseRestReportingClient
-from sdk.utils.reporting_api_helper.time_utils import _timespan as timespan
+from ll_sdk.base_client import BaseRestReportingClient
+from ll_sdk.utils.reporting_api_helper.time_utils import _timespan as timespan
 
 __all__ = ['RealtimeReportingClient']
 __docformat__ = 'restructuredtext'

+ 2 - 2
src/ll_sdk/reporting_api.py

@@ -3,8 +3,8 @@
 
 import json
 from itertools import chain
-from sdk.base_client import BaseRestReportingClient
-from sdk.utils.reporting_api_helper.time_utils import _timespan as timespan
+from ll_sdk.base_client import BaseRestReportingClient
+from ll_sdk.utils.reporting_api_helper.time_utils import _timespan as timespan
 
 __all__ = ['ReportingClient']
 __docformat__ = 'restructuredtext'

+ 1 - 1
src/ll_sdk/utils/config_api_helper/cert.py

@@ -6,7 +6,7 @@ __docformat__ = 'restructuredtext'
 
 import uuid
 from copy import deepcopy
-from sdk.utils.config_api_helper.templates.ssl_cert_template import *
+from ll_sdk.utils.config_api_helper.templates.ssl_cert_template import *
 
 
 class SSLCertObj(dict):

+ 1 - 1
src/ll_sdk/utils/config_api_helper/deliver.py

@@ -7,7 +7,7 @@ __docformat__ = 'restructuredtext'
 import uuid
 import requests
 from copy import deepcopy
-from ll-sdk.utils.config_api_helper.templates.delivery_template import *
+from ll_sdk.utils.config_api_helper.templates.delivery_template import *
 
 
 class DeliverServiceInstanceObj(dict):

+ 1 - 1
src/ll_sdk/utils/config_api_helper/httpcs.py

@@ -8,7 +8,7 @@ import uuid
 import requests
 from itertools import product
 from copy import deepcopy
-from sdk.utils.config_api_helper.templates.httpcs_template import *
+from ll_sdk.utils.config_api_helper.templates.httpcs_template import *
 
 
 class HttpCsServiceInstanceObj(dict):