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

Fix outdated target_group naming in error message
pull/1259/merge
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 tg.Labels = g.Labels
return checkOverflow(g.XXX, "target_group") return checkOverflow(g.XXX, "static_config")
} }
// MarshalYAML implements the yaml.Marshaler interface. // MarshalYAML implements the yaml.Marshaler interface.

View File

@ -60,7 +60,7 @@ func testFileSD(t *testing.T, ext string) {
} }
defer newf.Close() defer newf.Close()
f, err := os.Open("fixtures/target_groups" + ext) f, err := os.Open("fixtures/valid" + ext)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }