Skip to content

Fix terraform commands not supporting -var-file (v2.2.1)#36

Merged
AntonioCS merged 1 commit intomainfrom
fix/terraform-validate-var-file
Dec 15, 2025
Merged

Fix terraform commands not supporting -var-file (v2.2.1)#36
AntonioCS merged 1 commit intomainfrom
fix/terraform-validate-var-file

Conversation

@AntonioCS
Copy link
Owner

Summary

  • Fix bug where terraform validate, init, output, and state list were incorrectly receiving -var-file arguments (which they don't support)
  • Add skip_vars parameter (arg4) to tf_run function to skip -var-file inclusion
  • Add test to verify skip_vars functionality

Test plan

  • Run terraform module tests - all pass
  • Verify test_modules_terraform_run_skip_vars test validates the fix

….2.1)

- Add skip_vars parameter (arg4) to tf_run function
- Commands that don't support -var-file now pass $(mb_true) for skip_vars:
  init, validate, output, state list
- Add test_modules_terraform_run_skip_vars test
@AntonioCS AntonioCS merged commit e4171ad into main Dec 15, 2025
1 check passed
@AntonioCS AntonioCS deleted the fix/terraform-validate-var-file branch December 15, 2025 15:31
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