Skip to content

Commit f35cbee

Browse files
committed
Change name is reflect filter
Signed-off-by: joshvanl <[email protected]>
1 parent eeedd44 commit f35cbee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/scheduler/scheduler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func outputFunc(cmd *cobra.Command) *string {
8181
func filterFunc(cmd *cobra.Command) *string {
8282
all := []string{
8383
scheduler.FilterAll,
84-
scheduler.FilterJob,
84+
scheduler.FilterApp,
8585
scheduler.FilterActor,
8686
scheduler.FilterWorkflow,
8787
scheduler.FilterActivity,

pkg/scheduler/scheduler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929

3030
const (
3131
FilterAll = "all"
32-
FilterJob = "app"
32+
FilterApp = "app"
3333
FilterActor = "actor"
3434
FilterWorkflow = "workflow"
3535
FilterActivity = "activity"
@@ -61,7 +61,7 @@ func parseJob(jobCounter *JobCount, opts Filter) (*ListOutputWide, error) {
6161
if opts.Type != FilterAll {
6262
switch meta.GetTarget().GetType().(type) {
6363
case *schedulerv1.JobTargetMetadata_Job:
64-
if opts.Type != FilterJob {
64+
if opts.Type != FilterApp {
6565
return nil, nil
6666
}
6767
case *schedulerv1.JobTargetMetadata_Actor:

0 commit comments

Comments
 (0)