Skip to content

3.0.1: plan the destroy file that Invoke-LdoTerraformDestroy applies - #1

Merged
craigthackerx merged 2 commits into
mainfrom
fix/plan-destroy-default
Oct 22, 2026
Merged

craigthackerx merged 2 commits into
mainfrom
fix/plan-destroy-default

Conversation

@craigthackerx

Copy link
Copy Markdown
Contributor

What

Invoke-LdoTerraformPlanDestroy now defaults -PlanFile to tfplan-destroy.plan, the file Invoke-LdoTerraformDestroy applies by default.

Why

They disagreed (tfplan.plan.destroy against tfplan-destroy.plan), so the pair called with their defaults planned one file and then failed to find it. Every Libre DevOps module's just destroy calls them that way.

Notes

  • A caller that names -PlanFile on both is unaffected.
  • Bumps the manifest to 3.0.1, so merging publishes to the PowerShell Gallery; CHANGELOG has the entry.

Tests

New Pester test Destroy plan file defaults reads both commands' parameter defaults and requires them equal. tests/Terraform.Tests.ps1: 24 passed; PSScriptAnalyzer clean on the Terraform module.

Invoke-LdoTerraformPlanDestroy wrote tfplan.plan.destroy by default while
Invoke-LdoTerraformDestroy applied tfplan-destroy.plan, so the pair called with their defaults (as
every Libre DevOps module's just destroy does) planned one file and then failed to find it.
PlanDestroy now defaults to tfplan-destroy.plan, and a Pester test keeps the two defaults equal.
@craigthackerx
craigthackerx merged commit 291f825 into main Oct 22, 2026
1 check passed
@craigthackerx
craigthackerx deleted the fix/plan-destroy-default branch October 22, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant