From ccbad0c99a189ad66487dadd3219d8b27d00e25d Mon Sep 17 00:00:00 2001 From: Isaac Good <23107179+IsaacGood@users.noreply.github.com> Date: Sat, 10 Aug 2024 16:56:09 -0500 Subject: [PATCH] Update NewBitdefenderCompany.ps1 - fix invalid default license varaiable values API no longer accepts $null as valid for $LicenseExchange and $LicenseEncryption variables, changed to $false --- PSBitdefenderAPI/Companies/NewBitdefenderCompany.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PSBitdefenderAPI/Companies/NewBitdefenderCompany.ps1 b/PSBitdefenderAPI/Companies/NewBitdefenderCompany.ps1 index 173f61f..e22a536 100644 --- a/PSBitdefenderAPI/Companies/NewBitdefenderCompany.ps1 +++ b/PSBitdefenderAPI/Companies/NewBitdefenderCompany.ps1 @@ -41,10 +41,10 @@ function NewBitdefenderCompany { [int]$LicenseReservedSlots = $null, [Parameter(Mandatory=$False)] - [bool]$LicenseExchange = $null, + [bool]$LicenseExchange = $false, [Parameter(Mandatory=$False)] - [bool]$LicenseEncryption = $null + [bool]$LicenseEncryption = $false ) $Options = @{} @@ -70,4 +70,4 @@ function NewBitdefenderCompany { $ret = InvokeBitdefenderAPIRequest -APIUri $Global:BDCompaniesAPIURI -Method "createCompany" -Options $Options return $ret -} \ No newline at end of file +}