some more renames
This commit is contained in:
parent
4c740cbc54
commit
9264114895
@ -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"`
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user