From 9a049773f308d60befc92e79ef19c4b83e1548c6 Mon Sep 17 00:00:00 2001 From: Jan Knipper Date: Fri, 7 Dec 2018 14:56:58 +0100 Subject: [PATCH] Fix client scope --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 880855c6..b27e20e9 100644 --- a/main.go +++ b/main.go @@ -37,8 +37,9 @@ var ( ) func init() { + var err error flag.StringVar(&metricsAddr, "listen-address", ":9102", "The address to listen on for HTTP requests.") - dockerClient, err := docker_client.NewEnvClient() + dockerClient, err = docker_client.NewEnvClient() if err != nil { glog.Fatal(err) }