Make weaveutil container-addrs observe $PROCFS

This commit is contained in:
Adam Harrison authored and Matthias Radestock committed 2016-02-09 22:25:47 +00:00
1 parent 7ea3299dc6
commit 4cee647e73
4 files changed
+15 -11

No files matched your search

+8
View File
@@ -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
}