Venafi / VenafiPS

Powershell module to fully automate your Venafi TLS Protect Datacenter and Cloud platforms!
https://venafips.readthedocs.io/
Apache License 2.0
18 stars 7 forks source link

Set-TppAttribute gives error when using $null as value #176

Closed wilddev65 closed 1 year ago

wilddev65 commented 1 year ago

When trying to clear an attribute set on a policy, Set-TppAttribute gives an error if null is used as the attribute value;

$Attributes = @{
    'Script Execution Timeout' = $null
}

$Path | Set-TppAttribute -PolicyClass 'Adaptable App' -Attribute $Attributes

You cannot call a method on a null-valued expression. At C:\Program Files\WindowsPowerShell\Modules\VenafiPS\5.2.1\Public\Set-TppAttribute.ps1:136 char:13

wilddev65 commented 1 year ago

Fixed