File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
docker-java-core/src/main/java/com/github/dockerjava/core Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5
5
import com .github .dockerjava .api .model .AuthConfigurations ;
6
6
import com .github .dockerjava .core .NameParser .HostnameReposName ;
7
7
import com .github .dockerjava .core .NameParser .ReposTag ;
8
+
9
+ import java .util .Map .Entry ;
8
10
import java .util .Optional ;
9
11
import org .apache .commons .lang3 .StringUtils ;
10
12
import org .apache .commons .lang3 .SystemUtils ;
@@ -128,9 +130,11 @@ private static Properties loadIncludedDockerProperties(Properties systemProperti
128
130
}
129
131
130
132
private static void replaceProperties (Properties properties , Properties replacements ) {
131
- for (Object objectKey : properties .keySet ()) {
132
- String key = objectKey .toString ();
133
- properties .setProperty (key , replaceProperties (properties .getProperty (key ), replacements ));
133
+ for (Entry <Object , Object > entry : properties .entrySet ()) {
134
+ final String key = entry .getKey ().toString ();
135
+ // no entry.getValue here because it does not have the same semantics as getProperty (defaults handling)
136
+ final String value = properties .getProperty (key );
137
+ entry .setValue (replaceProperties (value , replacements ));
134
138
}
135
139
}
136
140
You can’t perform that action at this time.
0 commit comments