Update for github.com/containers/image API change

github.com/containers/image/copy.Image() now returns the copied
manifest, so we at least need to ignore it.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
Nalin Dahyabhai
2018-10-11 14:55:52 -04:00
parent 2b97124e4a
commit 2734f93e30

View File

@@ -88,7 +88,7 @@ func copyHandler(c *cli.Context) error {
}
}
return copy.Image(context.Background(), policyContext, destRef, srcRef, &copy.Options{
_, err = copy.Image(context.Background(), policyContext, destRef, srcRef, &copy.Options{
RemoveSignatures: removeSignatures,
SignBy: signBy,
ReportWriter: os.Stdout,
@@ -96,6 +96,7 @@ func copyHandler(c *cli.Context) error {
DestinationCtx: destinationCtx,
ForceManifestMIMEType: manifestType,
})
return err
}
var copyCmd = cli.Command{