Two small issues found by 'go vet'
This commit is contained in:
parent
453caf033d
commit
4e9c822ce8
2 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ func run(path string) {
|
|||
if len(*identity) != 0 {
|
||||
key, err = ioutil.ReadFile(*identity)
|
||||
if err != nil {
|
||||
fmt.Printf("[Error] Could not find or read identity file %s\n", identity)
|
||||
fmt.Printf("[Error] Could not find or read identity file %s\n", *identity)
|
||||
os.Exit(1)
|
||||
return
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ func (c *ImageService) List() ([]*Images, error) {
|
|||
|
||||
// Create an image, either by pull it from the registry or by importing it.
|
||||
func (c *ImageService) Create(image string) error {
|
||||
return c.do("POST", fmt.Sprintf("/images/create?fromImage=%s"), nil, nil)
|
||||
return c.do("POST", fmt.Sprintf("/images/create?fromImage=%s", image), nil, nil)
|
||||
}
|
||||
|
||||
func (c *ImageService) Pull(image string) error {
|
||||
|
|
Loading…
Reference in a new issue