Skip to content

Commit

Permalink
nit: set the default annotation of the custom annotation enricher to …
Browse files Browse the repository at this point in the history
…the empty map so that it doesn't crash if its run as a noop
  • Loading branch information
northdpole committed Oct 25, 2024
1 parent 64bbbb9 commit 8e9f06c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/enrichers/custom-annotation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ func run(name, annotations string) error {
}

func main() {
flag.StringVar(&annotations, "annotations", enrichers.LookupEnvOrString("ANNOTATIONS", ""), "what are the annotations this enricher will add to the issues")
flag.StringVar(&annotations, "annotations", enrichers.LookupEnvOrString("ANNOTATIONS", "{}"), "what are the annotations this enricher will add to the issues")
flag.StringVar(&name, "annotation-name", enrichers.LookupEnvOrString("NAME", defaultName), "what is the name this enricher will masquerade as")

if err := enrichers.ParseFlags(); err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 8e9f06c

Please sign in to comment.