Merge pull request #8315 from cpuguy83/devmapper_plugin_skip

devmapper plugin: skip plugin when not configured
This commit is contained in:
Maksym Pavlenko 2023-03-28 09:36:36 -07:00 committed by GitHub
commit a6ac62f02e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@ package plugin
import (
"errors"
"fmt"
"github.com/containerd/containerd/platforms"
"github.com/containerd/containerd/plugin"
@ -40,7 +41,7 @@ func init() {
}
if config.PoolName == "" {
return nil, errors.New("devmapper not configured")
return nil, fmt.Errorf("devmapper not configured: %w", plugin.ErrSkipPlugin)
}
if config.RootPath == "" {