Skip to content

Commit

Permalink
fix: Support modules tag in config (#965)
Browse files Browse the repository at this point in the history
Fixes an issue with old configs.
  • Loading branch information
disq committed Jun 21, 2022
1 parent 026a9ae commit 379344f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/config/config_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ var configSchemaHCL = &hcl.BodySchema{
Type: "provider",
LabelNames: []string{"name"},
},
{
Type: "modules", // deprecated
},
{
Type: "policy",
LabelNames: []string{"name"},
Expand Down Expand Up @@ -175,6 +178,9 @@ func (p *Parser) decodeConfigHCL(body hcl.Body, diags diag.Diagnostics) (*Config
}
case "policy":
hasPolicyBlock = true
case "modules":
// deprecated - ignore
continue
default:
// Should never happen because the above cases should be exhaustive
// for all block type names in our schema.
Expand Down

0 comments on commit 379344f

Please sign in to comment.