some more renames

This commit is contained in:
Abin Shahab 2014-10-14 23:19:46 +00:00
parent 4c740cbc54
commit 9264114895
2 changed files with 3 additions and 6 deletions

View File

@ -29,7 +29,7 @@ type containerHints struct {
}
type containerHint struct {
FullPath string `json:"full_path,omitempty"`
FullName string `json:"full_path,omitempty"`
NetworkInterface *networkInterface `json:"network_interface,omitempty"`
}

View File

@ -54,14 +54,11 @@ func newRawContainerHandler(name string, cgroupSubsystems *cgroupSubsystems, mac
}
cHints, err := getContainerHintsFromFile(*argContainerHints)
if err != nil {
glog.Fatalf("Error unmarshalling json %s Error: %s", *argContainerHints, err)
return nil, err
}
var networkInterface *networkInterface
for _, container := range cHints.AllHosts {
if !strings.Contains(container.FullPath, "/") {
glog.Fatalf("Invalid container fullPath %s", container.FullPath)
}
if name == container.FullPath {
if name == container.FullName {
networkInterface = container.NetworkInterface
break
}