python-terraform icon indicating copy to clipboard operation
python-terraform copied to clipboard

Unable to use destroy flag when invoking plan

Open michael-mcguinness opened this issue 3 years ago • 2 comments

This is for Terraform 0.15

From the command line I can run

terraform plan -destroy

None of the following invocations work

terraform.cmd('plan', destroy=terraform.IsFlagged)
 invalid boolean value "<function Terraform.__getattr__.<locals>.wrapper at
│ 0x10dcfbd30>" for -destroy: parse error
terraform.cmd('plan', 'destroy=True)
Error: Too many command line arguments
│
| To specify a working directory for the plan, use the global -chdir flag.

michael-mcguinness avatar Apr 26 '21 14:04 michael-mcguinness

Closing for further investigation and clearer failure modes

michael-mcguinness avatar Apr 26 '21 15:04 michael-mcguinness

Seems to me like it's the same issue with #103

naorlivne avatar Apr 30 '21 18:04 naorlivne