mirror of https://github.com/apache/nifi.git
NIFI-6958:
- Addressing issue causing errors preventing version changes when there is a processor to enable or disable in a sub process group.
This commit is contained in:
parent
5d851e6a13
commit
b1b06bf5e1
|
@ -4633,9 +4633,9 @@ public final class StandardProcessGroup implements ProcessGroup {
|
|||
processor.setPosition(new Position(proposed.getPosition().getX(), proposed.getPosition().getY()));
|
||||
|
||||
if (proposed.getScheduledState() == org.apache.nifi.registry.flow.ScheduledState.DISABLED) {
|
||||
disableProcessor(processor);
|
||||
processor.getProcessGroup().disableProcessor(processor);
|
||||
} else if (processor.getScheduledState() == ScheduledState.DISABLED) {
|
||||
enableProcessor(processor);
|
||||
processor.getProcessGroup().enableProcessor(processor);
|
||||
}
|
||||
|
||||
if (!isEqual(processor.getBundleCoordinate(), proposed.getBundle())) {
|
||||
|
|
Loading…
Reference in New Issue