Skip to content

Commit f9da062

Browse files
authoredJan 7, 2024
fix: add condition for latest (#94)
# Pull Request ## Issue Fixing the following error for the `terraform` deployment. <img width="515" alt="image" src="https://github.com/Azure/ALZ-PowerShell-Module/assets/77284962/1d40bb44-7a82-4ef0-aa7a-2127efde33ab"> ## Description Description of changes: ## License By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license.
·
v4.2.121.1.1-alpha
1 parent 176ec96 commit f9da062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/ALZ/Private/New-ALZEnvironmentTerraform.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function New-ALZEnvironmentTerraform {
4444
$starterCacheFileNamePattern = "cache-starter-*.json"
4545

4646
# Downloading the latest or specified version of the alz-terraform-accelerator module
47-
if(!($alzVersion.StartsWith("v"))) {
47+
if(!($alzVersion.StartsWith("v")) -and ($alzVersion -ne "latest")) {
4848
$alzVersion = "v$alzVersion"
4949
}
5050
$releaseTag = Get-ALZGithubRelease -directoryForReleases $alzEnvironmentDestination -iac "terraform" -release $alzVersion

0 commit comments

Comments
 (0)
Please sign in to comment.