From 9f7ce2c8b079885927c7b2dd6e25fa66509067a0 Mon Sep 17 00:00:00 2001 From: Nathan Windisch Date: Fri, 26 Jul 2024 13:54:54 +0100 Subject: [PATCH] Updated ConvertFrom-GraylogSession to properly parse the Cookies --- Functions/Private/ConvertFrom-GraylogSession.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Functions/Private/ConvertFrom-GraylogSession.ps1 b/Functions/Private/ConvertFrom-GraylogSession.ps1 index b3b373f..52b1413 100644 --- a/Functions/Private/ConvertFrom-GraylogSession.ps1 +++ b/Functions/Private/ConvertFrom-GraylogSession.ps1 @@ -35,7 +35,8 @@ function ConvertFrom-GraylogSession { # MaximumRetryCount = $InputObject.MaximumRetryCount # RetryIntervalInSeconds = $InputObject.RetryIntervalInSeconds # } - $Output = $InputObject + $Output = $InputObject | Select-Object -ExcludeProperty Cookies + $Output | Add-Member -MemberType NoteProperty -Name Cookies -Value ([Collections.Generic.List[PSCustomObject]]@()) if ($InputObject.Cookies.Count) { # GetAllCookies is only available in PowerShell Core :c $InputObject.Cookies.GetCookies($local:Graylog_BaseURI) | ForEach-Object {