rmbolger / Posh-ACME

PowerShell module and ACME client to create certificates from Let's Encrypt (or other ACME CA)
https://poshac.me/docs/latest/
MIT License
778 stars 190 forks source link

OVH plugin is not compatible with PowerShell 5.1 #545

Closed joshooaj closed 7 months ago

joshooaj commented 7 months ago

The OVH plugin uses the ternary operator which is invalid in PowerShell 5.1. You can reproduce the error by running Get-PAPlugin -Plugin OVH -Params in Windows PowerShell. I'm submitting a PR now and will reference this issue.

I don't actually use OVH - I only discovered it because I was writing some code to automatically prompt users for parameters based on the plugin they're using, and I wanted to see all the plugin argument types. While investigating all the possible parameter types for all plugins, I ran this and got a splash of red from OVH.ps1.

$plugins = Get-PAPlugin
$plugins.Name | % { Get-PAPlugin $_ -Params } | Group-Object ParameterType