Merge pull request #895 from dmcgowan/delete-windows-snapshotter

Skip snapshot removal on windows
This commit is contained in:
Phil Estes 2017-05-24 04:59:31 -04:00 committed by GitHub
commit c257deb1a0

View File

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