fix image manager Start() function return

realImageGCManager's Start()  function will always return nil,we do not need the err return value,drop it.
This commit is contained in:
NickrenREN
2016-12-21 14:58:00 +08:00
parent 64a0e0ee19
commit bb5ccb978e
2 changed files with 3 additions and 6 deletions

View File

@@ -1177,9 +1177,7 @@ func (kl *Kubelet) initializeModules() error {
}
// Step 4: Start the image manager.
if err := kl.imageManager.Start(); err != nil {
return fmt.Errorf("Failed to start ImageManager, images may not be garbage collected: %v", err)
}
kl.imageManager.Start()
// Step 5: Start container manager.
node, err := kl.getNodeAnyWay()