Skip to content

Commit 61a451d

Browse files
Fix variable name for VCAP services file path
Co-authored-by: @bennygoerzig
1 parent 9834280 commit 61a451d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

cf-java-logging-support-opentelemetry-agent-extension/src/main/java/com/sap/hcf/cf/logging/opentelemetry/agent/ext/binding/CloudFoundryServicesAdapter.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,16 @@ Builder withVcapServicesFilePathKey(String vcapServicesFilePathKey) {
196196
}
197197

198198
CloudFoundryServicesAdapter build() {
199-
String vcapServiceFilePath = envSupplier.apply(vcapServicesFilePathKey);
200-
if (vcapServiceFilePath != null) {
199+
String vcapServicesFilePath = envSupplier.apply(vcapServicesFilePathKey);
200+
if (vcapServicesFilePath != null) {
201201
try {
202-
Path path = Paths.get(vcapServiceFilePath);
202+
Path path = Paths.get(vcapServicesFilePath);
203203
String vcapServicesJson = Files.readString(path, StandardCharsets.UTF_8);
204-
LOG.fine("Successfully read VCAP services from file " + vcapServiceFilePath);
204+
LOG.fine("Successfully read VCAP services from file " + vcapServicesFilePath);
205205
return new CloudFoundryServicesAdapter(vcapServicesJson);
206206
} catch (IOException cause) {
207207
LOG.warning(
208-
"Cannot read VCAP services from file \"" + vcapServiceFilePath + "\". Falling back to environment variable " + VCAP_SERVICES);
208+
"Cannot read VCAP services from file \"" + vcapServicesFilePath + "\". Falling back to environment variable " + VCAP_SERVICES);
209209
}
210210
}
211211
return new CloudFoundryServicesAdapter(envSupplier.apply(VCAP_SERVICES));

0 commit comments

Comments
 (0)