1
0
Fork 0
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:
Victor Vieux 2016-10-31 17:59:45 -07:00
parent 8cced87022
commit 34f4b197b8

View file

@ -79,8 +79,10 @@ func (ps *Store) getAllByCap(capability string) []plugingetter.CompatPlugin {
result := make([]plugingetter.CompatPlugin, 0, 1) result := make([]plugingetter.CompatPlugin, 0, 1)
for _, p := range ps.plugins { for _, p := range ps.plugins {
if _, err := p.FilterByCap(capability); err == nil { if p.IsEnabled() {
result = append(result, p) if _, err := p.FilterByCap(capability); err == nil {
result = append(result, p)
}
} }
} }
return result return result