Skip to content

Commit 1d2449a

Browse files
Update CloudEnvironmentVariables.java
1 parent c854643 commit 1d2449a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/github/peterwippermann/cloudfoundry/connection/tester/CloudEnvironmentVariables.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ public class CloudEnvironmentVariables {
55

66
public static String getVariable(String key) {
77
// Standard way to read from CF's environment variables
8-
String property = System.getProperty(key);
9-
return property;
8+
String envVar = System.getenv(key);
9+
return envVar;
1010

1111
// Debug option to read a JVM's command-line argument
12-
// String cliArg = System.getenv(key);
12+
// String cliArg = System.getProperty(key);
1313
// return cliArg;
1414
}
1515

0 commit comments

Comments
 (0)