6262}
6363
6464
65- def _parse_operation_mode (apikey , config ):
65+ def _parse_operation_mode (sdkkey , config ):
6666 """
6767 Process incoming config to determine operation mode and storage type
6868
@@ -72,7 +72,7 @@ def _parse_operation_mode(apikey, config):
7272 :returns: operation mode and storage type
7373 :rtype: Tuple (str, str)
7474 """
75- if apikey == 'localhost' :
75+ if sdkkey == 'localhost' :
7676 _LOGGER .debug ('Using Localhost operation mode' )
7777 return 'localhost' , 'localhost'
7878
@@ -119,20 +119,20 @@ def _sanitize_impressions_mode(storage_type, mode, refresh_rate=None):
119119 return mode , refresh_rate
120120
121121
122- def sanitize (apikey , config ):
122+ def sanitize (sdkkey , config ):
123123 """
124124 Look for inconsistencies or ill-formed configs and tune it accordingly.
125125
126- :param apikey: customer's apikey
127- :type apikey : str
126+ :param sdkkey: sdk key
127+ :type sdkkey : str
128128
129129 :param config: DEFAULT + user supplied config
130130 :type config: dict
131131
132132 :returns: sanitized config
133133 :rtype: dict
134134 """
135- config ['operationMode' ], config ['storageType' ] = _parse_operation_mode (apikey , config )
135+ config ['operationMode' ], config ['storageType' ] = _parse_operation_mode (sdkkey , config )
136136 processed = DEFAULT_CONFIG .copy ()
137137 processed .update (config )
138138 imp_mode , imp_rate = _sanitize_impressions_mode (config ['storageType' ], config .get ('impressionsMode' ),
0 commit comments