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

+1 -5
View File
@@ -7,7 +7,6 @@ import (
"bytes"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"strings"
@@ -17,10 +16,7 @@ func dockerTLSArgs(args []string) error {
if len(args) > 0 {
cmdUsage("docker-tls-args", "")
}
procRoot := os.Getenv("PROCFS")
if procRoot == "" {
procRoot = "/proc"
}
procRoot := procDir()
dirEntries, err := ioutil.ReadDir(procRoot)
if err != nil {
return err