Return an empty services list if no services are running
Signed-off-by: Ralf Sippl <ralf.sippl@gmail.com>
This commit is contained in:
parent
1685b605a8
commit
c8e4e95db9
1 changed files with 1 additions and 1 deletions
|
@ -654,7 +654,7 @@ func (c *Cluster) GetServices(options apitypes.ServiceListOptions) ([]types.Serv
|
|||
return nil, err
|
||||
}
|
||||
|
||||
var services []types.Service
|
||||
services := []types.Service{}
|
||||
|
||||
for _, service := range r.Services {
|
||||
services = append(services, convert.ServiceFromGRPC(*service))
|
||||
|
|
Loading…
Reference in a new issue