Skip to content

Commit d8ff981

Browse files
Fix passing auth to terraform state list command
ForCommand expects every arg to be passed separately.
1 parent 59284f0 commit d8ff981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/terraform/terraform.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TerraformCLI() schema.Executable {
2727
NeedsAuth: needsauth.IfAny(
2828
needsauth.ForCommand("refresh"),
2929
needsauth.ForCommand("init"),
30-
needsauth.Forcommand("state list"),
30+
needsauth.Forcommand("state", "list"),
3131
needsauth.ForCommand("plan"),
3232
needsauth.ForCommand("apply"),
3333
needsauth.ForCommand("destroy"),

0 commit comments

Comments
 (0)