Skip snapshot removal on windows

Windows snapshotter is not yet implemented

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan 2017-05-23 17:18:31 -07:00
parent c00d731cc2
commit 40d338b12c
No known key found for this signature in database
GPG Key ID: F58C5D0A4405ACDB

View File

@ -2,6 +2,7 @@ package main
import ( import (
gocontext "context" gocontext "context"
"runtime"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
@ -53,8 +54,10 @@ var deleteCommand = cli.Command{
} }
} }
if err := snapshotter.Remove(ctx, id); err != nil { if runtime.GOOS != "windows" {
return errors.Wrapf(err, "failed to remove snapshot %q", id) if err := snapshotter.Remove(ctx, id); err != nil {
return errors.Wrapf(err, "failed to remove snapshot %q", id)
}
} }
return nil return nil