Merge pull request #41806 from dperny/fix-jobs-filter-spelling
Fix service job mode filter
This commit is contained in:
commit
727d597452
1 changed files with 2 additions and 2 deletions
|
@ -92,9 +92,9 @@ func (c *Cluster) GetServices(options apitypes.ServiceListOptions) ([]types.Serv
|
|||
case *swarmapi.ServiceSpec_Replicated:
|
||||
mode = "replicated"
|
||||
case *swarmapi.ServiceSpec_ReplicatedJob:
|
||||
mode = "replicatedjob"
|
||||
mode = "replicated-job"
|
||||
case *swarmapi.ServiceSpec_GlobalJob:
|
||||
mode = "globaljob"
|
||||
mode = "global-job"
|
||||
}
|
||||
|
||||
if !options.Filters.ExactMatch("mode", mode) {
|
||||
|
|
Loading…
Add table
Reference in a new issue