Skip to content

Commit

Permalink
fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatur authored and traefiker committed Jan 2, 2018
1 parent 6581c34 commit 7b2a81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ func (p *Provider) getServiceBackend(container dockerData, serviceName string) s
if value, ok := getContainerServiceLabel(container, serviceName, "frontend.backend"); ok {
return provider.Normalize(container.ServiceName + "-" + value)
}
return provider.Normalize(strings.TrimPrefix(container.ServiceName, "/") + "-" + p.getBackend(container) + "-" + serviceName)
return provider.Normalize(container.ServiceName + "-" + p.getBackend(container) + "-" + serviceName)
}

// Extract rule from labels for a given service and a given docker container
Expand Down

0 comments on commit 7b2a81d

Please sign in to comment.