Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unbalanced braces in default template values #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ Available Commands:
Flags:
-a, --api-url string The URL for the VictorOps API (default "https://alert.victorops.com/integrations/generic/20131114/alert")
-r, --routingkey string The VictorOps Routing Key
-e, --entity-id-template string The template for the Entity ID sent to VictorOps (default "{{.Entity.Name}/{{.Check.Name}}")
-m, --message-template string The template for the message sent to VictorOps (default "{{.Entity.Name}:{{.Check.Name}}:{{.Check.Output}}")
-e, --entity-id-template string The template for the Entity ID sent to VictorOps (default "{{.Entity.Name}}/{{.Check.Name}}")
-m, --message-template string The template for the message sent to VictorOps (default "{{.Entity.Name}}:{{.Check.Name}}:{{.Check.Output}}")
-h, --help help for sensu-victorops-handler
```

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var (
Env: "",
Argument: "message-template",
Shorthand: "m",
Default: "{{.Entity.Name}:{{.Check.Name}}:{{.Check.Output}}",
Default: "{{.Entity.Name}}:{{.Check.Name}}:{{.Check.Output}}",
Usage: "The template for the message sent to VictorOps",
Value: &config.MessageTemplate,
},
Expand All @@ -86,7 +86,7 @@ var (
Env: "",
Argument: "entity-id-template",
Shorthand: "e",
Default: "{{.Entity.Name}/{{.Check.Name}}",
Default: "{{.Entity.Name}}/{{.Check.Name}}",
Usage: "The template for the Entity ID sent to VictorOps",
Value: &config.EntityIDTemplate,
},
Expand Down