NIFI-9824 - Address WARN log message in ProcessorAuditor on action RunOnce

This closes #5890

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Paul Grey 2022-03-23 11:13:31 -04:00 committed by exceptionfactory
parent b53fb87aa1
commit cd0b289146
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
2 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,8 @@ public enum Operation {
StopVersionControl("Stop Version Control"),
CommitLocalChanges("Commit Local Changes"),
RevertLocalChanges("Revert Local Changes"),
ChangeVersion("Change Version");
ChangeVersion("Change Version"),
RunOnce("RunOnce");
private final String label;

View File

@ -263,6 +263,8 @@ public class ProcessorAuditor extends NiFiAuditor {
processorAction.setOperation(Operation.Stop);
} else if (ScheduledState.DISABLED.equals(scheduledState)) {
processorAction.setOperation(Operation.Enable);
} else if (ScheduledState.STOPPED.equals(scheduledState)) {
processorAction.setOperation(Operation.RunOnce);
}
}
actions.add(processorAction);