mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-08 16:06:47 +00:00
Fix snapshot key error
When obtaining the container information fails, the key for deleting the snapshot is incorrect. Signed-off-by: wangqiang <shivaqiang@qq.com>
This commit is contained in:
parent
70b0929cf2
commit
dd31784824
@ -57,7 +57,7 @@ func Remove(ctx context.Context, client *containerd.Client, name string) error {
|
||||
|
||||
} else {
|
||||
service := client.SnapshotService("")
|
||||
key := name + "snapshot"
|
||||
key := name + "-snapshot"
|
||||
if _, err := client.SnapshotService("").Stat(ctx, key); err == nil {
|
||||
service.Remove(ctx, key)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user