This commit is contained in:
shin- 2013-04-18 08:34:43 -07:00
Родитель 1cf8a2c26c
Коммит 7c1a27e2ad
2 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -2,8 +2,8 @@ package docker
import (
"fmt"
"net/http"
"io/ioutil"
"net/http"
"os"
"path"
"path/filepath"
@ -13,8 +13,8 @@ import (
// A Graph is a store for versioned filesystem images and the relationship between them.
type Graph struct {
Root string
idIndex *TruncIndex
Root string
idIndex *TruncIndex
httpClient *http.Client
}

Просмотреть файл

@ -277,7 +277,7 @@ func (graph *Graph) PullRepository(stdout io.Writer, remote, askedTag string, re
return err
}
} else {
tagsList = map[string]string{ askedTag : "" }
tagsList = map[string]string{askedTag: ""}
}
for askedTag, imgId := range tagsList {
@ -286,13 +286,13 @@ func (graph *Graph) PullRepository(stdout io.Writer, remote, askedTag string, re
if imgId == "" {
imgId, err = graph.getImageForTag(stdout, askedTag, remote, registry, token)
if err != nil {
fmt.Fprintf(stdout, "Error while retrieving image for tag: %v (%v) ; " +
"checking next endpoint", askedTag, err)
fmt.Fprintf(stdout, "Error while retrieving image for tag: %v (%v) ; "+
"checking next endpoint", askedTag, err)
continue
}
}
if err := graph.PullImage(stdout, imgId, "https://" + registry + "/v1", token); err != nil {
if err := graph.PullImage(stdout, imgId, "https://"+registry+"/v1", token); err != nil {
return err
}