Fix: ArgumentNullException on output-only Terraform plans
This release is a bug-fix-only update. It fixes a crash (ArgumentNullException) that occurred when processing Terraform plans where the resource_changes field is absent or explicitly null — a situation that arises with output-only plans (plans that change only outputs, with no infrastructure resource changes).
🐛 Bug fixes
- Fixed crash on output-only plans:
tfplan2mdpreviously threwArgumentNull_Generic Arg_ParamName_Name, sourcewhen the input plan JSON had noresource_changeskey (or"resource_changes": null). The tool now treats a missing or nullresource_changesas an empty list and produces a valid report showing only the output changes. - Null-safe action handling: Additional null guards added for
Change.ActionsandOutputChange.Actionsto protect against similarly missing fields in unusual plan formats.
Affected scenarios
- Terraform plans generated on workspaces with only
outputblock changes and no resource add/change/destroy operations - Plans produced by Terraform 1.13.x (confirmed with user-reported plan from Terraform 1.13.3)
- Any plan where
"resource_changes"is omitted or set tonullin the JSON
🔗 Commits
2de4452fix: handle null resource_changes/actions in tfplan.json gracefully