Skip to content

Commit 07b914a

Browse files
committed
fix(icp4d): icp4d_url mandatory only if icp4d_access_token is None
1 parent 6ad4e49 commit 07b914a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ibm_cloud_sdk_core/base_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(self, vcap_services_name, url, username=None, password=None,
107107
self.username = None
108108
self.password = None
109109
elif self._is_for_icp4d(self.authentication_type, self.icp4d_access_token):
110-
if self.icp4d_url is None:
110+
if self.icp4d_access_token is None and self.icp4d_url is None:
111111
raise Exception('The icp4d_url is mandatory for ICP4D.')
112112
self.token_manager = ICP4DTokenManager(self.icp4d_url,
113113
self.username,

0 commit comments

Comments
 (0)