Skip to content

Commit

Permalink
Merge pull request #32095 from anusha-ragunathan/set-state
Browse files Browse the repository at this point in the history
Explictly set state of a disabled plugin.
  • Loading branch information
anusha-ragunathan committed Mar 24, 2017
2 parents 3c22c7d + bbbf64f commit cddffe3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/manager_linux.go
Expand Up @@ -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
}
Expand Down

0 comments on commit cddffe3

Please sign in to comment.