From 070430d1328e2016f7bcf53cbe8e53e7849209db Mon Sep 17 00:00:00 2001 From: christopher donlan Date: Tue, 30 Jan 2024 16:59:44 -0500 Subject: [PATCH] adj. -eq to -in --- DellOpenManage/Public/OME/Connect-OMEServer.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DellOpenManage/Public/OME/Connect-OMEServer.ps1 b/DellOpenManage/Public/OME/Connect-OMEServer.ps1 index 7be0218..248ae64 100644 --- a/DellOpenManage/Public/OME/Connect-OMEServer.ps1 +++ b/DellOpenManage/Public/OME/Connect-OMEServer.ps1 @@ -91,7 +91,7 @@ param( $AppInfoUrl = "https://$($OMEHost)/api/ApplicationService/Info" $AppInfoResponse = Invoke-WebRequest -Uri $AppInfoUrl -UseBasicParsing -Method Get -Headers $Headers -ContentType $Type $AppVersion = [System.Version]"1.0.0" - if ($AppInfoResponse.StatusCode -eq 200, 201) { + if ($AppInfoResponse.StatusCode -in 200, 201) { $AppInfoResponseData = $AppInfoResponse.Content | ConvertFrom-Json Write-Verbose $($AppInfoResponseData) $AppVersion = [System.Version]$AppInfoResponseData.Version