diff options
Diffstat (limited to 'vid-app-common')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/job/command/MsoRequestBuilder.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/job/command/MsoRequestBuilder.kt b/vid-app-common/src/main/java/org/onap/vid/job/command/MsoRequestBuilder.kt index b69f76dfe..6146fec39 100644 --- a/vid-app-common/src/main/java/org/onap/vid/job/command/MsoRequestBuilder.kt +++ b/vid-app-common/src/main/java/org/onap/vid/job/command/MsoRequestBuilder.kt @@ -250,9 +250,10 @@ class MsoRequestBuilder } } - val result: MutableMap<String, String> = instanceParams[0].entries.stream() + val result: MutableMap<String, String> = mutableMapOf(); + instanceParams[0].entries.stream() .filter { entry -> !keysToRemove.contains(entry.key) } - .collect(Collectors.toMap({ it.key }, { it.value })) + .forEach { t -> result.put(t.key, t.value) } return if (result.isEmpty()) emptyList() else listOf(result) } |