mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
prevent plugin when volume plugin is disabled
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
8cced87022
commit
34f4b197b8
1 changed files with 4 additions and 2 deletions
|
@ -79,8 +79,10 @@ func (ps *Store) getAllByCap(capability string) []plugingetter.CompatPlugin {
|
|||
|
||||
result := make([]plugingetter.CompatPlugin, 0, 1)
|
||||
for _, p := range ps.plugins {
|
||||
if _, err := p.FilterByCap(capability); err == nil {
|
||||
result = append(result, p)
|
||||
if p.IsEnabled() {
|
||||
if _, err := p.FilterByCap(capability); err == nil {
|
||||
result = append(result, p)
|
||||
}
|
||||
}
|
||||
}
|
||||
return result
|
||||
|
|
Loading…
Reference in a new issue