mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
Merge pull request #2785 from prometheus/grobie/fix-target-group-naming
Fix outdated target_group naming in error message
This commit is contained in:
commit
1c9499bbbd
|
@ -728,7 +728,7 @@ func (tg *TargetGroup) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
|||
})
|
||||
}
|
||||
tg.Labels = g.Labels
|
||||
return checkOverflow(g.XXX, "target_group")
|
||||
return checkOverflow(g.XXX, "static_config")
|
||||
}
|
||||
|
||||
// MarshalYAML implements the yaml.Marshaler interface.
|
||||
|
|
|
@ -60,7 +60,7 @@ func testFileSD(t *testing.T, ext string) {
|
|||
}
|
||||
defer newf.Close()
|
||||
|
||||
f, err := os.Open("fixtures/target_groups" + ext)
|
||||
f, err := os.Open("fixtures/valid" + ext)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue