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

Handle exception when target object doesn't exist in Move-TppObject #188

Closed gdbarron closed 1 year ago

gdbarron commented 1 year ago

we need to know if the target path is a policy or not so we try and get the object. getting an object causes an error if it doesn't exist, but since the target object may not exist, which is expected, we need to handle the error.

also backing out the use of join-path which causes \ to change to / on non-windows systems and causes errors.