Skip to content

Commit

Permalink
fix(icp4d): icp4d_url mandatory only if icp4d_access_token is None
Browse files Browse the repository at this point in the history
  • Loading branch information
ehdsouza committed Jun 4, 2019
1 parent 6ad4e49 commit 07b914a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibm_cloud_sdk_core/base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __init__(self, vcap_services_name, url, username=None, password=None,
self.username = None
self.password = None
elif self._is_for_icp4d(self.authentication_type, self.icp4d_access_token):
if self.icp4d_url is None:
if self.icp4d_access_token is None and self.icp4d_url is None:
raise Exception('The icp4d_url is mandatory for ICP4D.')
self.token_manager = ICP4DTokenManager(self.icp4d_url,
self.username,
Expand Down

0 comments on commit 07b914a

Please sign in to comment.