prevent plugin when volume plugin is disabled

Signed-off-by: Victor Vieux <vieux@docker.com>
Upstream-commit: 34f4b197b8cec5b177797e343a5c89473ff1d2aa
Component: engine
This commit is contained in:
Victor Vieux
2016-10-31 17:59:45 -07:00
parent 60ab876d91
commit 062853d1d4
+4 -2
View File
@@ -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