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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user