diff --git a/cmd/drone/drone.go b/cmd/drone/drone.go index e3f97ee3..9fdc6b3c 100644 --- a/cmd/drone/drone.go +++ b/cmd/drone/drone.go @@ -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 } diff --git a/pkg/build/docker/image.go b/pkg/build/docker/image.go index 85954b05..ca5eb052 100644 --- a/pkg/build/docker/image.go +++ b/pkg/build/docker/image.go @@ -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 {