1
0
mirror of https://github.com/apache/nifi.git synced 2025-02-09 19:45:09 +00:00

NIFI-11105: This closes . When mapping Parameter Context to VersionedParameterContext, don't bother mapping those that have already been mapped, as it is redundant

Signed-off-by: Joe Witt <joewitt@apache.org>
This commit is contained in:
Mark Payne 2023-01-26 16:35:04 -05:00 committed by Joe Witt
parent 41649660be
commit d9f35b8974
No known key found for this signature in database
GPG Key ID: 9093BF854F811A1A

@ -879,6 +879,10 @@ public class NiFiRegistryFlowMapper {
private void mapParameterContext(final ParameterContext parameterContext, final Map<String, VersionedParameterContext> parameterContexts,
final Map<String, ParameterProviderReference> parameterProviderReferences) {
if (parameterContexts.containsKey(parameterContext.getName())) {
return;
}
// map this process group's parameter context and add to the collection
final Set<VersionedParameter> parameters = mapParameters(parameterContext);