Kubelet: fix the warning message

pull/6/head
Yu-Ju Hong 2015-06-04 11:07:08 -07:00
parent 02f3142f41
commit 46e29cfb70
1 changed files with 4 additions and 3 deletions

View File

@ -136,8 +136,9 @@ func (cm *containerManagerImpl) Start() error {
go util.Until(func() {
for _, cont := range cm.systemContainers {
if cont.ensureStateFunc != nil {
err := cont.ensureStateFunc(cont.manager)
glog.Warningf("[ContainerManager] Failed to ensure state of %q: %v", cont.name, err)
if err := cont.ensureStateFunc(cont.manager); err != nil {
glog.Warningf("[ContainerManager] Failed to ensure state of %q: %v", cont.name, err)
}
}
}
}, time.Minute, util.NeverStop)
@ -227,7 +228,7 @@ func ensureSystemContainer(rootContainer *fs.Manager, manager *fs.Manager) error
allPids, err := rootContainer.GetPids()
if err != nil {
errs = append(errs, fmt.Errorf("Failed to list PIDs for root: %v", err))
errs = append(errs, fmt.Errorf("failed to list PIDs for root: %v", err))
continue
}