NIFI-3065 When copying a PG, do not set the Log File Suffix if not already set

This closes #7522

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Mark Payne 2023-07-24 12:21:30 -04:00 committed by exceptionfactory
parent d9b04770ef
commit 0eebf6b14e
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ public final class SnippetUtils {
if (snippetContents.getProcessGroups() != null) {
for (final ProcessGroupDTO processGroupDTO : snippetContents.getProcessGroups()) {
String logFileSuffix = processGroupDTO.getLogFileSuffix();
if (logFileSuffix != null) {
if (logFileSuffix != null && !logFileSuffix.trim().isEmpty()) {
while (existingLogFileSuffixes.contains(logFileSuffix)) {
logFileSuffix = "Copy_of_" + logFileSuffix;
}