Merge pull request #8315 from cpuguy83/devmapper_plugin_skip
devmapper plugin: skip plugin when not configured
This commit is contained in:
commit
a6ac62f02e
@ -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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user