Skip to content

Commit 1bc4b18

Browse files
authored
Update ads.set_auth() to use both customized config and signer (#371)
2 parents ca6d812 + b44c0a1 commit 1bc4b18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ads/common/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def create_signer(
416416
>>> auth = ads.auth.create_signer(auth_type="security_token", config=config) # security token authentication created based on provided config
417417
"""
418418
if signer or signer_callable:
419-
configuration = ads.telemetry.update_oci_client_config()
419+
configuration = ads.telemetry.update_oci_client_config(config)
420420
if signer_callable:
421421
signer = signer_callable(**signer_kwargs)
422422
signer_dict = {
@@ -479,7 +479,7 @@ def default_signer(client_kwargs: Optional[Dict] = None) -> Dict:
479479
"""
480480
auth_state = AuthState()
481481
if auth_state.oci_signer or auth_state.oci_signer_callable:
482-
configuration = ads.telemetry.update_oci_client_config()
482+
configuration = ads.telemetry.update_oci_client_config(auth_state.oci_config)
483483
signer = auth_state.oci_signer
484484
if auth_state.oci_signer_callable:
485485
signer_kwargs = auth_state.oci_signer_kwargs or {}

0 commit comments

Comments
 (0)