mirror of
https://github.com/apache/nifi.git
synced 2025-02-09 11:35:05 +00:00
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:
parent
d9b04770ef
commit
0eebf6b14e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user