Make weaveutil container-addrs observe $PROCFS
This commit is contained in:
1 parent
7ea3299dc6
commit
4cee647e73
4 files changed
+15
-11
No files matched your search
@@ -60,3 +60,11 @@ func cmdUsage(cmd string, usage string) {
|
||||
fmt.Fprintf(os.Stderr, "usage: weaveutil %s %s\n", cmd, usage)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
func procDir() string {
|
||||
procDir := os.Getenv("PROCFS")
|
||||
if procDir == "" {
|
||||
procDir = "/proc"
|
||||
}
|
||||
return procDir
|
||||
}
|
||||
Reference in new issue
Block a user