Skip to content

Commit

Permalink
Fix 'missing api-key header' bug in auditor/monitor-to-qed queries.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Luis Lucas authored and iknite committed Feb 19, 2019
1 parent 9b0daf9 commit 9d2af0e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/bbva/qed/gossip"
)

func newAgentCommand(cmdCtx cmdContext, args []string) *cobra.Command {
func newAgentCommand(cmdCtx *cmdContext, args []string) *cobra.Command {

config := gossip.DefaultConfig()

Expand Down
2 changes: 1 addition & 1 deletion cmd/agent_auditor.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/bbva/qed/util"
)

func newAgentAuditorCommand(ctx cmdContext, config gossip.Config, agentPreRun func(gossip.Config) gossip.Config) *cobra.Command {
func newAgentAuditorCommand(ctx *cmdContext, config gossip.Config, agentPreRun func(gossip.Config) gossip.Config) *cobra.Command {

auditorConfig := auditor.DefaultConfig()

Expand Down
2 changes: 1 addition & 1 deletion cmd/agent_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/bbva/qed/util"
)

func newAgentMonitorCommand(ctx cmdContext, config gossip.Config, agentPreRun func(gossip.Config) gossip.Config) *cobra.Command {
func newAgentMonitorCommand(ctx *cmdContext, config gossip.Config, agentPreRun func(gossip.Config) gossip.Config) *cobra.Command {

monitorConfig := monitor.DefaultConfig()

Expand Down
2 changes: 1 addition & 1 deletion cmd/agent_publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/bbva/qed/util"
)

func newAgentPublisherCommand(ctx cmdContext, config gossip.Config, agentPreRun func(gossip.Config) gossip.Config) *cobra.Command {
func newAgentPublisherCommand(ctx *cmdContext, config gossip.Config, agentPreRun func(gossip.Config) gossip.Config) *cobra.Command {

publisherConfig := publisher.DefaultConfig()

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func NewRootCommand(args []string) *cobra.Command {
cmd.AddCommand(
newStartCommand(ctx),
newClientCommand(ctx),
newAgentCommand(*ctx, args),
newAgentCommand(ctx, args),
)

return cmd
Expand Down

0 comments on commit 9d2af0e

Please sign in to comment.