Add only legacy plugins to the legacy lookup map.

Legacy plugin model maintained a map of plugins. This is
not used by the new model. Using this map in the new model
causes incorrect lookup of plugins. This change uses adds
a plugin to the map only if its legacy.

Signed-off-by: Anusha Ragunathan <anusha@docker.com>
Upstream-commit: 8fd779dc28a11d8727d76e9553379b0c854f7c4c
Component: engine
This commit is contained in:
Anusha Ragunathan
2016-07-18 15:39:27 -07:00
parent 00a715516e
commit 0228458e3c
4 changed files with 17 additions and 2 deletions

View File

@ -6,4 +6,5 @@ import "github.com/docker/docker/pkg/plugins"
type Plugin interface {
Client() *plugins.Client
Name() string
IsLegacy() bool
}