1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

use key map to iterate over parameters, not defaults key map

This commit is contained in:
Christopher Fenner 2018-02-06 13:44:03 +01:00
parent 6e3bfac5c8
commit 2a6c0d5f34

View File

@ -17,8 +17,8 @@ class ConfigurationMerger {
if(configs != null && configKeys){
configs = configs.subMap(configKeys.keySet())
for(String key : defaults.keySet())
if(MapUtils.isMap(defaults[key]))
for(String key : configKeys.keySet())
if(MapUtils.isMap(configKeys[key]))
merged[key] = merge(configs[key], configKeys[key], defaults[key])
else if(configs[key] != null)
merged[key] = configs[key]