mirror of https://github.com/apache/nifi.git
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:
parent
b53fb87aa1
commit
cd0b289146
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue