Skip to content

Commit

Permalink
update parser resolve with max resolver depth flag value
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturRibeiro-CX committed May 14, 2024
1 parent b913c16 commit 5494846
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/parser/bicep/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ func (p *Parser) StringifyContent(content []byte) (string, error) {
}

// Resolve resolves bicep files variables
func (p *Parser) Resolve(fileContent []byte, _ string, _ bool) ([]byte, error) {
func (p *Parser) Resolve(fileContent []byte, _ string, _ bool, _ int) ([]byte, error) {
return fileContent, nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/parser/bicep/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestParser_SupportedExtensions(t *testing.T) {
func Test_Resolve(t *testing.T) {
parser := &Parser{}
param := `param vmName string = 'simple-vm'`
resolved, err := parser.Resolve([]byte(param), "test.bicep", true)
resolved, err := parser.Resolve([]byte(param), "test.bicep", true, 15)
require.NoError(t, err)
require.Equal(t, []byte(param), resolved)
}
Expand Down

0 comments on commit 5494846

Please sign in to comment.