fix errror message

This commit is contained in:
mqliang
2015-11-14 15:33:32 +08:00
parent 961a02a602
commit d7acd3d58f

View File

@@ -203,7 +203,7 @@ func (s *StoreToReplicationControllerLister) GetPodControllers(pod *api.Pod) (co
controllers = append(controllers, rc) controllers = append(controllers, rc)
} }
if len(controllers) == 0 { if len(controllers) == 0 {
err = fmt.Errorf("Could not find daemon set for pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) err = fmt.Errorf("Could not find controller for pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels)
} }
return return
} }