From fc6e36671f2409cdb84fa38012f5a5cd010a7bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20D=C3=ADaz=20Marco?= Date: Thu, 17 Nov 2022 14:31:54 +0100 Subject: [PATCH] Fix issue. --- cmd/x509-certificate-exporter/main.go | 4 ++-- internal/exporter.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/x509-certificate-exporter/main.go b/cmd/x509-certificate-exporter/main.go index 161890a..9aa497b 100644 --- a/cmd/x509-certificate-exporter/main.go +++ b/cmd/x509-certificate-exporter/main.go @@ -95,8 +95,8 @@ func main() { exporter := internal.Exporter{ ListenAddress: *listenAddress, - SystemdSocket: systemdSocket, - ConfigFile: configFile, + SystemdSocket: *systemdSocket, + ConfigFile: *configFile, Files: files, Directories: directories, YAMLs: yamls, diff --git a/internal/exporter.go b/internal/exporter.go index eb1234f..5fe6dfd 100644 --- a/internal/exporter.go +++ b/internal/exporter.go @@ -25,8 +25,8 @@ import ( // Exporter : Configuration (from command-line) type Exporter struct { ListenAddress string - SystemdSocket *bool - ConfigFile *string + SystemdSocket bool + ConfigFile string Files []string Directories []string YAMLs []string @@ -92,8 +92,8 @@ func (exporter *Exporter) Serve() error { toolkitFlags := web.FlagConfig{ WebListenAddresses: &[]string{exporter.ListenAddress}, - WebSystemdSocket: exporter.SystemdSocket, - WebConfigFile: exporter.ConfigFile, + WebSystemdSocket: &exporter.SystemdSocket, + WebConfigFile: &exporter.ConfigFile, } promlogConfig := &promlog.Config{}