Skip to content

Commit e6091b2

Browse files
authored
Merge pull request moby#39422 from lemrouch/35876-workaround
Don't try to load plugin without name
2 parents 2101bfa + ee09f5a commit e6091b2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/plugins/plugins.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ func get(name string) (*Plugin, error) {
254254

255255
// Get returns the plugin given the specified name and requested implementation.
256256
func Get(name, imp string) (*Plugin, error) {
257+
if name == "" {
258+
return nil, errors.New("Unable to find plugin without name")
259+
}
257260
pl, err := get(name)
258261
if err != nil {
259262
return nil, err

0 commit comments

Comments
 (0)