Fix vet issues with build/push code

This fixes the vet issues when running `make vet` due to unkeyed fields.
This commit is contained in:
Charlie Drage 2017-06-20 08:58:09 -04:00
parent 4a267c160a
commit f6363dd89c

View File

@ -213,7 +213,7 @@ func BuildDockerImage(service kobject.ServiceConfig, name string, relativePath s
// Use the build struct function to build the image
// Build the image!
build := docker.Build{*client}
build := docker.Build{Client: *client}
err = build.BuildImage(imagePath, imageName)
if err != nil {
@ -240,7 +240,7 @@ func PushDockerImage(service kobject.ServiceConfig, serviceName string) error {
return err
}
push := docker.Push{*client}
push := docker.Push{Client: *client}
err = push.PushImage(service.Image)
if err != nil {