Merge pull request #2785 from prometheus/grobie/fix-target-group-naming

Fix outdated target_group naming in error message
This commit is contained in:
Tobias Schmidt 2017-05-31 11:28:46 +02:00 committed by GitHub
commit 1c9499bbbd
4 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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)
}