mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 04:09:29 -05:00
Merge pull request #671 from Icinga:fix/ensure_update_compatibility_with_version_1.11.0
Fix: Update compatibility with Icinga for Windows v1.11.0 Ensures the backwards compatibility with Icinga for Windows v1.11.0, which broke the update mechanism for version checks.
This commit is contained in:
commit
d024542081
2 changed files with 6 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ function Install-IcingaComponent()
|
|||
|
||||
Set-IcingaTLSVersion;
|
||||
|
||||
if ($Version -eq 'release') {
|
||||
if ($Version.ToLower() -eq 'release' -Or $Version.ToLower() -eq 'latest') {
|
||||
$Version = $null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ function Update-Icinga()
|
|||
{
|
||||
param (
|
||||
[string]$Name = $null,
|
||||
[string]$Version = $null,
|
||||
[string]$Version = 'release',
|
||||
[switch]$Release = $FALSE,
|
||||
[switch]$Snapshot = $FALSE,
|
||||
[switch]$Confirm = $FALSE,
|
||||
|
|
@ -26,7 +26,10 @@ function Update-Icinga()
|
|||
$NewVersion = $Component.LatestVersion;
|
||||
|
||||
if ([string]::IsNullOrEmpty($Version) -eq $FALSE) {
|
||||
$NewVersion = $Version;
|
||||
# Ensure we are backwards compatible with Icinga for Windows v1.11.0 which broke the version update feature
|
||||
if ($Version.ToLower() -ne 'release' -And $Version.ToLower() -ne 'latest') {
|
||||
$NewVersion = $Version;
|
||||
}
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrEmpty($NewVersion)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue