File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ function Bump-AzVersion
175175 Write-Host " Getting local Az information..." - ForegroundColor Yellow
176176 $localAz = Import-PowerShellDataFile - Path " $PSScriptRoot \Az\Az.psd1"
177177 Write-Host " Getting Az $ReleaseType information from gallery..." - ForegroundColor Yellow
178+
178179 if (" LTS" -eq $ReleaseType ){
179180 if (Test-Path Env:\DEFAULT_PS_REPOSITORY_URL) {
180181 Write-Host " Using DEFAULT_PS_REPOSITORY_NAME: $Env: DEFAULT_PS_REPOSITORY_NAME "
@@ -216,11 +217,7 @@ function Bump-AzVersion
216217 continue
217218 }
218219
219- $galleryVersion = $galleryDependency.RequiredVersion
220- if ([string ]::IsNullOrEmpty($galleryVersion ))
221- {
222- $galleryVersion = $galleryDependency.MinimumVersion
223- }
220+ $galleryVersion = $galleryDependency.VersionRange.MinVersion.OriginalVersion
224221
225222 $localVersion = $localDependency.RequiredVersion
226223 # Az.Accounts uses ModuleVersion to annote Version
@@ -364,11 +361,7 @@ function Update-AzPreviewChangelog
364361 continue
365362 }
366363
367- $galleryVersion = $galleryDependency.RequiredVersion
368- if ([string ]::IsNullOrEmpty($galleryVersion ))
369- {
370- $galleryVersion = $galleryDependency.MinimumVersion
371- }
364+ $galleryVersion = $galleryDependency.VersionRange.MinVersion.OriginalVersion
372365
373366 $localVersion = $localDependency.RequiredVersion
374367 # Az.Accounts uses ModuleVersion to annote Version
You can’t perform that action at this time.
0 commit comments