Fix json keys for groups and targets

Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
This commit is contained in:
Patrick Van Stee 2020-05-07 21:59:49 -04:00
parent 340686a383
commit 1bc068a583
No known key found for this signature in database
GPG Key ID: BF979CB547EC707B

View File

@ -72,8 +72,8 @@ func ParseFile(fn string) (*Config, error) {
type Config struct {
Variables []*Variable `json:"-" hcl:"variable,block"`
Groups []*Group `json:"groups" hcl:"group,block"`
Targets []*Target `json:"targets" hcl:"target,block"`
Groups []*Group `json:"group" hcl:"group,block"`
Targets []*Target `json:"target" hcl:"target,block"`
Remain hcl.Body `json:"-" hcl:",remain"`
}