@@ -651,10 +651,9 @@ volume_size = 10`)
651
651
Name : "get content with options" ,
652
652
Args : func () (* hclext.BodySchema , * tflint.GetModuleContentOption ) {
653
653
return & hclext.BodySchema {}, & tflint.GetModuleContentOption {
654
- ModuleCtx : tflint .RootModuleCtxType ,
655
- IncludeNotCreated : true ,
656
- ExpandMode : tflint .ExpandModeNone ,
657
- Hint : tflint.GetModuleContentHint {ResourceType : "aws_instance" },
654
+ ModuleCtx : tflint .RootModuleCtxType ,
655
+ ExpandMode : tflint .ExpandModeNone ,
656
+ Hint : tflint.GetModuleContentHint {ResourceType : "aws_instance" },
658
657
}
659
658
},
660
659
ServerImpl : func (schema * hclext.BodySchema , opts tflint.GetModuleContentOption ) (* hclext.BodyContent , hcl.Diagnostics ) {
@@ -663,11 +662,6 @@ volume_size = 10`)
663
662
& hcl.Diagnostic {Severity : hcl .DiagError , Summary : "unexpected moduleCtx options" },
664
663
}
665
664
}
666
- if ! opts .IncludeNotCreated {
667
- return & hclext.BodyContent {}, hcl.Diagnostics {
668
- & hcl.Diagnostic {Severity : hcl .DiagError , Summary : "unexpected includeNotCreatedResources options" },
669
- }
670
- }
671
665
if opts .ExpandMode != tflint .ExpandModeNone {
672
666
return & hclext.BodyContent {}, hcl.Diagnostics {
673
667
& hcl.Diagnostic {Severity : hcl .DiagError , Summary : "unexpected expand mode options" },
0 commit comments