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

Find-TppObject can use -recursive twice #153

Closed wilddev65 closed 2 years ago

wilddev65 commented 2 years ago

Find-TppObject -Class 'X509 Server Certificate' -Recursive

Exception calling "Add" with "2" argument(s): "Item has already been added. Key in dictionary: 'Recursive' Key being added: 'Recursive'" At C:\Program Files\WindowsPowerShell\Modules\VenafiPS\5.1.1\Public\Find-TppObject.ps1:181 char:13

The above error is due to line 161 adding the recursive param to the body as there isn't a path specified and then the switch adding it at line 181.