Skip to content

Commit

Permalink
Merge pull request #244 from upbound/revert-238-fix/doc-generator
Browse files Browse the repository at this point in the history
Revert "feat(doc-generator): fix generation examples for provider-vault"
  • Loading branch information
ulucinar authored Aug 1, 2023
2 parents 39dcb37 + d6887fb commit 2ef67f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/registry/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,10 @@ func (r *Resource) findExampleBlock(file *hcl.File, blocks hclsyntax.Blocks, res
continue
}

switch {
case suffixMatch(b.Labels[0], *resourceName, 1) || strings.Contains(*resourceName, b.Labels[0]):
if suffixMatch(b.Labels[0], *resourceName, 1) {
*resourceName = b.Labels[0]
exactMatch = true
default:
} else {
dependencies[depKey] = m
continue
}
Expand Down

0 comments on commit 2ef67f5

Please sign in to comment.