diff --git a/.github/workflows/test-apply.yaml b/.github/workflows/test-apply.yaml index 8af0e858..21245b0c 100644 --- a/.github/workflows/test-apply.yaml +++ b/.github/workflows/test-apply.yaml @@ -1145,7 +1145,7 @@ jobs: exit 1 fi - if ! grep -q "will perform the following actions" '${{ steps.output.outputs.text_plan_path }}'; then + if ! grep -q "OpenTofu will perform the following actions" '${{ steps.output.outputs.text_plan_path }}'; then echo "::error:: text_plan_path not set correctly" exit 1 fi diff --git a/image/tools/compact_plan.py b/image/tools/compact_plan.py index 802f4e73..7edc8eac 100755 --- a/image/tools/compact_plan.py +++ b/image/tools/compact_plan.py @@ -11,11 +11,13 @@ def compact_plan(input): if not plan and ( line.startswith('Terraform used the selected providers') or + line.startswith('OpenTofu used the selected providers') or line.startswith('An execution plan has been generated and is shown below') or line.startswith('No changes') or line.startswith('Error') or line.startswith('Changes to Outputs:') or - line.startswith('Terraform will perform the following actions:') + line.startswith('Terraform will perform the following actions:') or + line.startswith('OpenTofu will perform the following actions:') ): plan = True