Skip to content

Commit d2c1dc3

Browse files
committed
Merge branch 'master' into develop
2 parents 88aae52 + 9f1c796 commit d2c1dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/eu/openanalytics/containerproxy/ContainerProxyApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static void main(String[] args) {
120120
boolean hasExternalConfig = Files.exists(Paths.get(CONFIG_FILENAME))
121121
|| System.getProperty("spring.config.location") != null
122122
|| System.getenv("SPRING_CONFIG_LOCATION") != null
123-
|| Arrays.asList(args).contains("--spring.config.location");
123+
|| Arrays.stream(args).anyMatch(s -> s.contains("--spring.config.location"));
124124

125125
if (!hasExternalConfig) {
126126
app.setAdditionalProfiles(CONFIG_DEMO_PROFILE);

0 commit comments

Comments
 (0)