Merge pull request #895 from dmcgowan/delete-windows-snapshotter
Skip snapshot removal on windows
This commit is contained in:
commit
c257deb1a0
@ -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
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user