Skip to content

notify.DeepCopyWithTemplate edge cases #5012

@TheMeier

Description

@TheMeier

What did you do?

Input like "{}:{alertname=\"test1\"}" trips up notify.DeepCopyWithTemplate

What did you expect to see?

passing "{}:{alertname=\"test1\"}" into notify.DeepCopyWithTemplate to just return the string

What did you see instead? Under which circumstances?

passing "{}:{alertname=\"test1\"}" into notify.DeepCopyWithTemplate returns interface{} nil

System information

Irrelevant

Alertmanager version

current main branch

Alertmanager configuration file

Irrelevant

Prometheus version

Irrelevant

Prometheus configuration file

Irrelevant

Logs

Irrelevant

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

To triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions