Ensure that empty mesos containers reference as a failure to fetch containers
This commit is contained in:
parent
b36e6fb63a
commit
ec4f24ebd4
@ -141,6 +141,10 @@ func (self *client) getContainers() (mContainers, error) {
|
||||
return nil, fmt.Errorf("failed to get mesos containers: %v", err)
|
||||
}
|
||||
cntrs := result.GetContainers
|
||||
|
||||
if cntrs == nil {
|
||||
return nil, fmt.Errorf("failed to get mesos containers")
|
||||
}
|
||||
return cntrs, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user