mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	rkt: fix KillPod() to return the correct error message.
This commit is contained in:
		@@ -1045,7 +1045,8 @@ func (r *Runtime) KillPod(pod *api.Pod, runningPod kubecontainer.Pod) error {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	res := <-reschan
 | 
						res := <-reschan
 | 
				
			||||||
	if res != "done" {
 | 
						if res != "done" {
 | 
				
			||||||
		glog.Errorf("rkt: Failed to stop unit %q: %s", serviceName, res)
 | 
							err := fmt.Errorf("invalid result: %s", res)
 | 
				
			||||||
 | 
							glog.Errorf("rkt: Failed to stop unit %q: %v", serviceName, err)
 | 
				
			||||||
		return err
 | 
							return err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user