File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,7 +204,6 @@ def get_centml_ops_client():
204204 # Update/delete requires platform-api-ops-client
205205 response = ops_client.update_cserve_recipes(cluster_id=1001, platform_data=data)
206206 """
207- # Get token once and reuse it to avoid potential hanging on second call
208207 access_token = auth .get_centml_token ()
209208
210209 configuration = platform_api_python_client .Configuration (
@@ -220,7 +219,7 @@ def get_centml_ops_client():
220219 if OPS_CLIENT_AVAILABLE :
221220 ops_configuration = platform_api_ops_client .Configuration (
222221 host = settings .CENTML_PLATFORM_API_URL ,
223- access_token = access_token , # Reuse the same token
222+ access_token = access_token ,
224223 )
225224 with platform_api_ops_client .ApiClient (ops_configuration ) as ops_client :
226225 ops_api = OPSApi (ops_client )
You can’t perform that action at this time.
0 commit comments