Skip to content

Commit a35431e

Browse files
committed
fix: make sure the delegate has the same ssl config
Signed-off-by: Norbert Biczo <[email protected]>
1 parent 872c678 commit a35431e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ibm_cloud_sdk_core/authenticators/iam_assume_authenticator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ def validate(self) -> None:
151151
if self.token_manager.iam_profile_name and not self.token_manager.iam_account_id:
152152
raise ValueError('`iam_profile_name` and `iam_account_id` must be provided together, or not at all.')
153153

154+
def set_disable_ssl_verification(self, status: bool = False) -> None:
155+
self.token_manager.iam_delegate.set_disable_ssl_verification(status)
156+
return super().set_disable_ssl_verification(status)
157+
154158
def set_iam_profile_id(self, iam_profile_id: str) -> None:
155159
"""Set the ID of the IAM profile.
156160

test/test_iam_assume_authenticator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ def test_disable_ssl_verification():
6666
apikey='my_apikey', iam_profile_id='my-profile-id', disable_ssl_verification=True
6767
)
6868
assert authenticator.token_manager.disable_ssl_verification is True
69+
assert authenticator.token_manager.iam_delegate.disable_ssl_verification is True
6970

7071
authenticator.set_disable_ssl_verification(False)
7172
assert authenticator.token_manager.disable_ssl_verification is False
73+
assert authenticator.token_manager.iam_delegate.disable_ssl_verification is False
7274

7375

7476
def test_invalid_disable_ssl_verification_type():

0 commit comments

Comments
 (0)