Skip to content

Commit f44c5af

Browse files
committed
refactor(core): Allow tokenManager creation if IAM URL is not in VCAP_SERVICES
1 parent 31c42de commit f44c5af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/ibm/watson/developer_cloud/service/WatsonService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public WatsonService(final String name) {
103103
this.name = name;
104104
String iamApiKey = CredentialUtils.getIAMKey(name);
105105
String iamUrl = CredentialUtils.getIAMUrl(name);
106-
if (iamApiKey != null && iamUrl != null) {
106+
if (iamApiKey != null) {
107107
IamOptions iamOptions = new IamOptions.Builder()
108108
.apiKey(iamApiKey)
109109
.url(iamUrl)

0 commit comments

Comments
 (0)