Skip to content

Commit

Permalink
Fix outdated target_group naming in error message
Browse files Browse the repository at this point in the history
The target_groups config has been renamed to static_configs, the error
message for overflow attributes should reflect that.
  • Loading branch information
grobie committed May 31, 2017
1 parent 240bb67 commit 287ec6e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion discovery/file/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 287ec6e

Please sign in to comment.