Add Ubuntu2204 ImageType (#5476)

* Add Ubuntu2204 ImageType

* Update json path
This commit is contained in:
Aleksandr Chebotov
2022-05-04 11:19:49 +02:00
committed by GitHub
parent f1b7652904
commit a27099b057
2 changed files with 5 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ enum ImageType {
Windows2022 = 2
Ubuntu1804 = 3
Ubuntu2004 = 4
Ubuntu2204 = 5
}
Function Get-PackerTemplatePath {
@@ -32,6 +33,9 @@ Function Get-PackerTemplatePath {
([ImageType]::Ubuntu2004) {
$relativeTemplatePath = Join-Path "linux" "ubuntu2004.json"
}
([ImageType]::Ubuntu2204) {
$relativeTemplatePath = Join-Path "linux" "ubuntu2204.json"
}
default { throw "Unknown type of image" }
}