Delete reduandant err definition

pull/6/head
zhangxiaoyu-zidif 2017-06-07 16:53:59 +08:00
parent 0613ae5077
commit 3d891f960c
1 changed files with 0 additions and 1 deletions

View File

@ -301,7 +301,6 @@ func (kl *Kubelet) GetPodCgroupParent(pod *v1.Pod) string {
// GenerateRunContainerOptions generates the RunContainerOptions, which can be used by
// the container runtime to set parameters for launching a container.
func (kl *Kubelet) GenerateRunContainerOptions(pod *v1.Pod, container *v1.Container, podIP string) (*kubecontainer.RunContainerOptions, bool, error) {
var err error
useClusterFirstPolicy := false
cgroupParent := kl.GetPodCgroupParent(pod)
opts := &kubecontainer.RunContainerOptions{CgroupParent: cgroupParent}