mirror of https://github.com/apache/nifi.git
NIFI-2766: - Ensuring the root group is included in /resources.
This closes #1013. Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
parent
d325773760
commit
b48355e75a
|
@ -797,6 +797,12 @@ public class ControllerFacade implements Authorizable {
|
|||
|
||||
final ProcessGroup root = flowController.getGroup(flowController.getRootGroupId());
|
||||
|
||||
// include the root group
|
||||
final Resource rootResource = root.getResource();
|
||||
resources.add(rootResource);
|
||||
resources.add(ResourceFactory.getDataResource(rootResource));
|
||||
resources.add(ResourceFactory.getPolicyResource(rootResource));
|
||||
|
||||
// add each processor
|
||||
for (final ProcessorNode processor : root.findAllProcessors()) {
|
||||
final Resource processorResource = processor.getResource();
|
||||
|
|
Loading…
Reference in New Issue