Fix the build.
This commit is contained in:
@@ -227,6 +227,7 @@ func getPodStatus(pod *api.Pod, minions client.MinionInterface) (api.PodStatus,
|
||||
if pod.CurrentState.Host == "" {
|
||||
return api.PodWaiting, nil
|
||||
}
|
||||
if minions != nil {
|
||||
res, err := minions.ListMinions()
|
||||
if err != nil {
|
||||
glog.Errorf("Error listing minions: %v", err)
|
||||
@@ -242,6 +243,9 @@ func getPodStatus(pod *api.Pod, minions client.MinionInterface) (api.PodStatus,
|
||||
if !found {
|
||||
return api.PodTerminated, nil
|
||||
}
|
||||
} else {
|
||||
glog.Errorf("Unexpected missing minion interface, status may be in-accurate")
|
||||
}
|
||||
if pod.CurrentState.Info == nil {
|
||||
return api.PodWaiting, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user