dotcloud/docker

View on GitHub
api/server/router/volume/volume_routes.go

Summary

Maintainability
A
35 mins
Test Coverage

Method volumeRouter.putVolumesUpdate has 5 return statements (exceeds 4 allowed).
Open

func (v *volumeRouter) putVolumesUpdate(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
    if !v.cluster.IsManager() {
        return errdefs.Unavailable(errors.New("volume update only valid for cluster volumes, but swarm is unavailable"))
    }

Severity: Major
Found in api/server/router/volume/volume_routes.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status