mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #32095 from anusha-ragunathan/set-state
Explictly set state of a disabled plugin.
This commit is contained in:
commit
cddffe327e
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,8 @@ func (pm *Manager) pluginPostStart(p *v2.Plugin, c *controller) error {
|
||||||
if retries > maxRetries {
|
if retries > maxRetries {
|
||||||
logrus.Debugf("error net dialing plugin: %v", err)
|
logrus.Debugf("error net dialing plugin: %v", err)
|
||||||
c.restart = false
|
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)
|
shutdownPlugin(p, c, pm.containerdClient)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue