Skip to content

Commit 4de77a0

Browse files
vimalmeena238jotruon
authored andcommitted
Added FoundResource variable declaration
1 parent e8d3e5b commit 4de77a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/resourcediscovery/export_compartment.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,7 @@ func findResources(ctx *tf_export.ResourceDiscoveryContext, root *tf_export.OCIR
891891
// If find resources needs to fail in some scenario, this func needs to be modified to return error instead of continuing discovery
892892
// Errors so far are API errors or the errors when service/feature is not available
893893
foundResources = []*tf_export.OCIResource{}
894+
var foundResourcesLock sync.Mutex
894895

895896
childResourceTypes, exists := resourceGraph[root.TerraformClass]
896897
if !exists {

0 commit comments

Comments
 (0)