mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #39422 from lemrouch/35876-workaround
Don't try to load plugin without name
This commit is contained in:
commit
e6091b28c5
1 changed files with 3 additions and 0 deletions
|
@ -254,6 +254,9 @@ func get(name string) (*Plugin, error) {
|
|||
|
||||
// Get returns the plugin given the specified name and requested implementation.
|
||||
func Get(name, imp string) (*Plugin, error) {
|
||||
if name == "" {
|
||||
return nil, errors.New("Unable to find plugin without name")
|
||||
}
|
||||
pl, err := get(name)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue