Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find-TppObject can use -recursive twice #153

Closed
wilddev65 opened this issue Oct 25, 2022 · 0 comments · Fixed by #154
Closed

Find-TppObject can use -recursive twice #153

wilddev65 opened this issue Oct 25, 2022 · 0 comments · Fixed by #154
Assignees

Comments

@wilddev65
Copy link
Collaborator

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

  •         $params.Body.Add( 'Recursive', 'true' )
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : ArgumentException

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants