From ecb95a4ad4459120c6ef01a5d2f58ff35e551eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20D=C3=ADaz=20L=C3=B3pez=20de=20la=20Llave?= Date: Mon, 3 Dec 2018 15:17:14 +0100 Subject: [PATCH] Add publiser endpoint to auditor configuration and cli --- cmd/agent_auditor.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/agent_auditor.go b/cmd/agent_auditor.go index 49828657a..2f2b4dd59 100644 --- a/cmd/agent_auditor.go +++ b/cmd/agent_auditor.go @@ -24,7 +24,7 @@ import ( func newAgentAuditorCommand(ctx *agentContext) *cobra.Command { - var qedEndpoints []string + var qedUrls, pubUrls []string cmd := &cobra.Command{ Use: "auditor", @@ -40,7 +40,8 @@ func newAgentAuditorCommand(ctx *agentContext) *cobra.Command { agentConfig.Role = member.Auditor auditorConfig := auditor.DefaultConfig() auditorConfig.APIKey = apiKey - auditorConfig.QEDEndpoints = qedEndpoints + auditorConfig.QEDUrls = qedUrls + auditorConfig.PubUrls = pubUrls auditor, err := auditor.NewAuditor(auditorConfig) if err != nil { @@ -63,7 +64,8 @@ func newAgentAuditorCommand(ctx *agentContext) *cobra.Command { }, } - cmd.Flags().StringSliceVarP(&qedEndpoints, "endpoints", "", []string{}, "Comma-delimited list of QED servers ([host]:port), through which an auditor can make queries") + cmd.Flags().StringSliceVarP(&qedUrls, "qedUrls", "", []string{}, "Comma-delimited list of QED servers ([host]:port), through which an auditor can make queries") + cmd.Flags().StringSliceVarP(&pubUrls, "pubUrls", "", []string{}, "Comma-delimited list of QED servers ([host]:port), through which an auditor can make queries") cmd.MarkFlagRequired("endpoints") return cmd