Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
In ListPipeline.java we have:
@Override public void execute(ScmClient scmClient) throws IOException { Stream<Pipeline> stream = scmClient.listPipelines().stream(); if (!Strings.isNullOrEmpty(factor)) { stream = stream.filter( p -> ReplicationConfig.getLegacyFactor(p.getReplicationConfig()) .toString().compareToIgnoreCase(factor) == 0); } if (!Strings.isNullOrEmpty(state)) { stream = stream.filter(p -> p.getPipelineState().toString() .compareToIgnoreCase(state) == 0); } stream.forEach(System.out::println); }
This code will fail if the pipeline is an EC pipeline. We should also allow for filtering on EC pipelines.
Attachments
Issue Links
- links to