Skip to content

Commit 010aa78

Browse files
committed
fix: incorrect cmdlet references
1 parent dcd4268 commit 010aa78

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/ALZ/Private/Deploy-Accelerator-Helpers/Request-AcceleratorConfigurationInput.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function Request-AcceleratorConfigurationInput {
6464
Write-InformationColored "ERROR: Required configuration file not found: inputs.yaml" -ForegroundColor Red -InformationAction Continue
6565
}
6666
Write-InformationColored "Please overwrite the folder structure by choosing 'y', or run New-AcceleratorFolderStructure manually." -ForegroundColor Yellow -InformationAction Continue
67-
return New-AcceleratorResult -Continue $false
67+
return ConvertTo-AcceleratorResult -Continue $false
6868
}
6969
}
7070
}
@@ -74,29 +74,29 @@ function Request-AcceleratorConfigurationInput {
7474
if (-not $folderConfig.FolderExists) {
7575
Write-InformationColored "ERROR: Target folder '$normalizedTargetPath' does not exist." -ForegroundColor Red -InformationAction Continue
7676
Write-InformationColored "Cannot destroy a deployment that doesn't exist. Please check the path and try again." -ForegroundColor Yellow -InformationAction Continue
77-
return New-AcceleratorResult -Continue $false
77+
return ConvertTo-AcceleratorResult -Continue $false
7878
}
7979

8080
if (-not (Test-Path -Path $folderConfig.ConfigFolderPath)) {
8181
Write-InformationColored "ERROR: Config folder not found at '$($folderConfig.ConfigFolderPath)'" -ForegroundColor Red -InformationAction Continue
8282
Write-InformationColored "Cannot destroy a deployment without configuration files." -ForegroundColor Yellow -InformationAction Continue
83-
return New-AcceleratorResult -Continue $false
83+
return ConvertTo-AcceleratorResult -Continue $false
8484
}
8585

8686
if (-not (Test-Path -Path $folderConfig.InputsYamlPath)) {
8787
Write-InformationColored "ERROR: Required configuration file not found: inputs.yaml" -ForegroundColor Red -InformationAction Continue
8888
Write-InformationColored "Cannot destroy a deployment without inputs.yaml." -ForegroundColor Yellow -InformationAction Continue
89-
return New-AcceleratorResult -Continue $false
89+
return ConvertTo-AcceleratorResult -Continue $false
9090
}
9191

9292
# Build input config file paths based on detected IaC type
93-
$configPaths = Get-AcceleratorConfigPaths -IacType $folderConfig.IacType -ConfigFolderPath $folderConfig.ConfigFolderPath
93+
$configPaths = Get-AcceleratorConfigPath -IacType $folderConfig.IacType -ConfigFolderPath $folderConfig.ConfigFolderPath
9494
$resolvedTargetPath = (Resolve-Path -Path $normalizedTargetPath).Path
9595

9696
Write-InformationColored "Using existing folder: $resolvedTargetPath" -ForegroundColor Green -InformationAction Continue
9797
Write-InformationColored "`nProceeding with destroy..." -ForegroundColor Yellow -InformationAction Continue
9898

99-
return New-AcceleratorResult -Continue $true `
99+
return ConvertTo-AcceleratorResult -Continue $true `
100100
-InputConfigFilePaths $configPaths.InputConfigFilePaths `
101101
-StarterAdditionalFiles $configPaths.StarterAdditionalFiles `
102102
-OutputFolderPath "$resolvedTargetPath/output"
@@ -252,15 +252,15 @@ Deploy-Accelerator ``
252252
"@ -ForegroundColor Cyan -InformationAction Continue
253253
}
254254

255-
return New-AcceleratorResult -Continue $false
255+
return ConvertTo-AcceleratorResult -Continue $false
256256
}
257257

258258
# Build the result for continuing with deployment
259-
$configPaths = Get-AcceleratorConfigPaths -IacType $selectedIacType -ConfigFolderPath $configFolderPath
259+
$configPaths = Get-AcceleratorConfigPath -IacType $selectedIacType -ConfigFolderPath $configFolderPath
260260

261261
Write-InformationColored "`nContinuing with deployment..." -ForegroundColor Green -InformationAction Continue
262262

263-
return New-AcceleratorResult -Continue $true `
263+
return ConvertTo-AcceleratorResult -Continue $true `
264264
-InputConfigFilePaths $configPaths.InputConfigFilePaths `
265265
-StarterAdditionalFiles $configPaths.StarterAdditionalFiles `
266266
-OutputFolderPath "$resolvedTargetPath/output"

0 commit comments

Comments
 (0)