File tree Expand file tree Collapse file tree
docker-java-core/src/main/java/com/github/dockerjava/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import com .github .dockerjava .api .model .AuthConfigurations ;
66import com .github .dockerjava .core .NameParser .HostnameReposName ;
77import com .github .dockerjava .core .NameParser .ReposTag ;
8+
9+ import java .util .Map .Entry ;
810import java .util .Optional ;
911import org .apache .commons .lang3 .StringUtils ;
1012import org .apache .commons .lang3 .SystemUtils ;
@@ -128,9 +130,11 @@ private static Properties loadIncludedDockerProperties(Properties systemProperti
128130 }
129131
130132 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 ));
134138 }
135139 }
136140
You can’t perform that action at this time.
0 commit comments