Bump cAdvisor (and dependencies) godeps version
This commit is contained in:
15
vendor/github.com/google/cadvisor/api/versions.go
generated
vendored
15
vendor/github.com/google/cadvisor/api/versions.go
generated
vendored
@@ -361,7 +361,10 @@ func (self *version2_0) HandleRequest(requestType string, request []string, m ma
|
||||
glog.V(4).Infof("Api - Stats: Looking for stats for container %q, options %+v", name, opt)
|
||||
infos, err := m.GetRequestedContainersInfo(name, opt)
|
||||
if err != nil {
|
||||
return err
|
||||
if len(infos) == 0 {
|
||||
return err
|
||||
}
|
||||
glog.Errorf("Error calling GetRequestedContainersInfo: %v", err)
|
||||
}
|
||||
contStats := make(map[string][]v2.DeprecatedContainerStats, 0)
|
||||
for name, cinfo := range infos {
|
||||
@@ -482,7 +485,10 @@ func (self *version2_1) HandleRequest(requestType string, request []string, m ma
|
||||
glog.V(4).Infof("Api - MachineStats(%v)", request)
|
||||
cont, err := m.GetRequestedContainersInfo("/", opt)
|
||||
if err != nil {
|
||||
return err
|
||||
if len(cont) == 0 {
|
||||
return err
|
||||
}
|
||||
glog.Errorf("Error calling GetRequestedContainersInfo: %v", err)
|
||||
}
|
||||
return writeResult(v2.MachineStatsFromV1(cont["/"]), w)
|
||||
case statsApi:
|
||||
@@ -490,7 +496,10 @@ func (self *version2_1) HandleRequest(requestType string, request []string, m ma
|
||||
glog.V(4).Infof("Api - Stats: Looking for stats for container %q, options %+v", name, opt)
|
||||
conts, err := m.GetRequestedContainersInfo(name, opt)
|
||||
if err != nil {
|
||||
return err
|
||||
if len(conts) == 0 {
|
||||
return err
|
||||
}
|
||||
glog.Errorf("Error calling GetRequestedContainersInfo: %v", err)
|
||||
}
|
||||
contStats := make(map[string]v2.ContainerInfo, len(conts))
|
||||
for name, cont := range conts {
|
||||
|
Reference in New Issue
Block a user