File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -670,6 +670,8 @@ def commands_step(path, commands):
670670 # If path doesn't defined for a block with
671671 # commands it will be set to Terraform's
672672 # current working directory
673+ # NB: cwd may vary when using Terraform 0.14+ like:
674+ # `terraform -chdir=...`
673675 path = query .paths .cwd
674676 if batch :
675677 step ('sh' , path , '\n ' .join (batch ))
Original file line number Diff line number Diff line change 77data "external" "archive_prepare" {
88 count = var. create && var. create_package ? 1 : 0
99
10- program = [local . python , " ${ path . module } /package.py" , " prepare" ]
11- working_dir = path. cwd
10+ program = [local . python , " ${ path . module } /package.py" , " prepare" ]
1211
1312 query = {
1413 paths = jsonencode ({
@@ -66,8 +65,7 @@ resource "null_resource" "archive" {
6665 local . python , " ${ path . module } /package.py" , " build" ,
6766 " --timestamp" , data . external . archive_prepare [0 ]. result . timestamp
6867 ]
69- command = data. external . archive_prepare [0 ]. result . build_plan_filename
70- working_dir = path. cwd
68+ command = data. external . archive_prepare [0 ]. result . build_plan_filename
7169 }
7270
7371 depends_on = [local_file . archive_plan ]
You can’t perform that action at this time.
0 commit comments