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):
670
670
# If path doesn't defined for a block with
671
671
# commands it will be set to Terraform's
672
672
# current working directory
673
+ # NB: cwd may vary when using Terraform 0.14+ like:
674
+ # `terraform -chdir=...`
673
675
path = query .paths .cwd
674
676
if batch :
675
677
step ('sh' , path , '\n ' .join (batch ))
Original file line number Diff line number Diff line change 7
7
data "external" "archive_prepare" {
8
8
count = var. create && var. create_package ? 1 : 0
9
9
10
- program = [local . python , " ${ path . module } /package.py" , " prepare" ]
11
- working_dir = path. cwd
10
+ program = [local . python , " ${ path . module } /package.py" , " prepare" ]
12
11
13
12
query = {
14
13
paths = jsonencode ({
@@ -66,8 +65,7 @@ resource "null_resource" "archive" {
66
65
local . python , " ${ path . module } /package.py" , " build" ,
67
66
" --timestamp" , data . external . archive_prepare [0 ]. result . timestamp
68
67
]
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
71
69
}
72
70
73
71
depends_on = [local_file . archive_plan ]
You can’t perform that action at this time.
0 commit comments