Skip to content

Commit

Permalink
terraform/module: fix reference collection skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Nov 8, 2021
1 parent b29e7ec commit 6f35ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/terraform/module/module_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ func (ml *moduleLoader) EnqueueModuleOp(modOp ModuleOperation) error {
}
ml.modStore.SetMetaState(modOp.ModulePath, op.OpStateQueued)
case op.OpTypeDecodeReferenceTargets:
if mod.MetaState == op.OpStateQueued {
if mod.RefTargetsState == op.OpStateQueued {
// avoid enqueuing duplicate operation
return nil
}
ml.modStore.SetReferenceTargetsState(modOp.ModulePath, op.OpStateQueued)
case op.OpTypeDecodeReferenceOrigins:
if mod.MetaState == op.OpStateQueued {
if mod.RefOriginsState == op.OpStateQueued {
// avoid enqueuing duplicate operation
return nil
}
Expand Down

0 comments on commit 6f35ea4

Please sign in to comment.