Merge pull request #950 from stevvooe/remote-path-manip

cmd/dist: remove unnecessary path manipulation
This commit is contained in:
Stephen Day 2017-06-01 17:58:13 -07:00 committed by GitHub
commit 305c04154e

9
cmd/dist/common.go vendored
View File

@ -8,7 +8,6 @@ import (
"fmt"
"net"
"net/http"
"path/filepath"
"strings"
"time"
@ -56,14 +55,6 @@ func getClient(context *cli.Context) (*containerd.Client, error) {
}
func resolveContentStore(context *cli.Context) (content.Store, error) {
root := filepath.Join(context.GlobalString("root"), "content")
if !filepath.IsAbs(root) {
var err error
root, err = filepath.Abs(root)
if err != nil {
return nil, err
}
}
conn, err := connectGRPC(context)
if err != nil {
return nil, err