This commit is contained in:
Shreyas Goenka 2024-09-26 15:39:41 +02:00
parent 894f4aab4e
commit fd01824ee1
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func validateSingleResourceDefined(r *config.Root, ext, typ string) diag.Diagnos
seenKeys[rr.key] = struct{}{} seenKeys[rr.key] = struct{}{}
} }
// Format matches. There's less than or equal to one resource defined in the file. // Format matches. There's at most one resource defined in the file.
// The resource is also of the correct type. // The resource is also of the correct type.
if typeMatch && len(seenKeys) <= 1 { if typeMatch && len(seenKeys) <= 1 {
return nil return nil