Skip to content

Commit 0c9e0d7

Browse files
committed
update logger path
1 parent b52a90a commit 0c9e0d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PowerShellModules/Terraform.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ function Invoke-TerraformInit
154154
throw "Terraform code not found: $CodePath"
155155
}
156156

157-
_LogMessage -Level 'INFO' -Message "Running *terraform init ${InitArgs} * in: $CodePath" -InvocationName $inv
158157
Set-Location $CodePath
159158

160159
if ($CreateBackendKey -and $PSBoundParameters.ContainsKey('StackFolderName')) {
@@ -165,6 +164,8 @@ function Invoke-TerraformInit
165164
$InitArgs += "-backend-config=key=$backendKey"
166165
}
167166

167+
_LogMessage -Level 'INFO' -Message "Running *terraform init ${InitArgs} * in: $CodePath" -InvocationName $inv
168+
168169
& terraform init @InitArgs
169170
$code = $LASTEXITCODE
170171
_LogMessage -Level 'DEBUG' -Message "terraform init exit-code: $code" -InvocationName $inv

0 commit comments

Comments
 (0)