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

Get-VdcCertificate returns error when passing path for certificate #235

Closed nlighten closed 9 months ago

nlighten commented 9 months ago

Environment

Operating System:
VenafiPS version: 6.0.4
PowerShell version:  7.2.17
TPP version (if applicable): 23.3.1

Steps to reproduce

Get-VdcCertificate $certificateId

or

Get-VdcCertificate -ID $certificateId

Expected behavior

Certificate is returned

Actual behavior

The following error is returned when passing a path. Passing a guid works fine.

ConvertTo-VdcFullPath:
Line |
  18 |                  $thisGuid = $PSItem | ConvertTo-VdcFullPath | Convert …
     |                                        ~~~~~~~~~~~~~~~~~~~~~
     | The term 'ConvertTo-VdcFullPath' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Screenshots

Not applicable

gdbarron commented 9 months ago

@nlighten thanks for reporting this. This was a small bug specific to executing in parallel on ps core. v6.0.5 will be released shortly to fix it.

nlighten commented 9 months ago

Thanks for the quick fix. Issue is resolved for my use case.