1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

Merge pull request #32095 from anusha-ragunathan/set-state

Explictly set state of a disabled plugin.
Upstream-commit: cddffe327ebdf88df94618babbb1206b3ac7c629
Component: engine
This commit is contained in:
Anusha Ragunathan
2017-03-24 14:03:32 -07:00
committed by GitHub

View File

@@ -97,6 +97,8 @@ func (pm *Manager) pluginPostStart(p *v2.Plugin, c *controller) error {
if retries > maxRetries {
logrus.Debugf("error net dialing plugin: %v", err)
c.restart = false
// While restoring plugins, we need to explicitly set the state to disabled
pm.config.Store.SetState(p, false)
shutdownPlugin(p, c, pm.containerdClient)
return err
}