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 (
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user