File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -593,15 +593,20 @@ func RunJob(
593
593
}
594
594
595
595
var terraformExecutor execution.TerraformExecutor
596
+ var iacUtils iac_utils.IacUtils
596
597
projectPath := path .Join (workingDir , job .ProjectDir )
597
598
if job .Terragrunt {
598
599
terraformExecutor = execution.Terragrunt {WorkingDir : projectPath }
600
+ iacUtils = iac_utils.TerraformUtils {}
599
601
} else if job .OpenTofu {
600
602
terraformExecutor = execution.OpenTofu {WorkingDir : projectPath , Workspace : job .ProjectWorkspace }
603
+ iacUtils = iac_utils.TerraformUtils {}
601
604
} else if job .Pulumi {
602
605
terraformExecutor = execution.Pulumi {WorkingDir : projectPath , Stack : job .ProjectWorkspace }
606
+ iacUtils = iac_utils.PulumiUtils {}
603
607
} else {
604
608
terraformExecutor = execution.Terraform {WorkingDir : projectPath , Workspace : job .ProjectWorkspace }
609
+ iacUtils = iac_utils.TerraformUtils {}
605
610
}
606
611
607
612
commandRunner := execution.CommandRunner {}
@@ -627,6 +632,7 @@ func RunJob(
627
632
TerraformExecutor : terraformExecutor ,
628
633
PlanStorage : planStorage ,
629
634
PlanPathProvider : planPathProvider ,
635
+ IacUtils : iacUtils ,
630
636
}
631
637
632
638
switch command {
You can’t perform that action at this time.
0 commit comments