mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
ba6adc5f46
commit
8fd779dc28
4 changed files with 17 additions and 2 deletions
|
@ -83,6 +83,11 @@ func (p *Plugin) Client() *Client {
|
|||
return p.client
|
||||
}
|
||||
|
||||
// IsLegacy returns true for legacy plugins and false otherwise.
|
||||
func (p *Plugin) IsLegacy() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// NewLocalPlugin creates a new local plugin.
|
||||
func NewLocalPlugin(name, addr string) *Plugin {
|
||||
return &Plugin{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue