Fix outdated target_group naming in error message

The target_groups config has been renamed to static_configs, the error
message for overflow attributes should reflect that.
This commit is contained in:
Tobias Schmidt 2017-05-31 11:01:13 +02:00
parent 240bb671e2
commit 287ec6e6cc
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)
}