Skip to content

Commit

Permalink
Return an empty services list if no services are running
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Sippl <ralf.sippl@gmail.com>
  • Loading branch information
rsippl committed Jul 12, 2016
1 parent 1685b60 commit c8e4e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c8e4e95

Please sign in to comment.