We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc67000 commit b52a90aCopy full SHA for b52a90a
PowerShellModules/Terraform.psm1
@@ -159,7 +159,7 @@ function Invoke-TerraformInit
159
160
if ($CreateBackendKey -and $PSBoundParameters.ContainsKey('StackFolderName')) {
161
$folderName = Split-Path -Path $StackFolderName -Leaf
162
- $backendKey = $folderName -replace '_', '-' + ".terraform.tfstate"
+ $backendKey = ($folderName -replace '_', '-') + ".terraform.tfstate"
163
_LogMessage -Level 'DEBUG' -Message "Computed backend key name: $backendKey" -InvocationName $MyInvocation.MyCommand.Name
164
165
$InitArgs += "-backend-config=key=$backendKey"
0 commit comments