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

OVH plugin is not compatible with PowerShell 5.1 #545

Closed
joshooaj opened this issue Apr 29, 2024 · 0 comments · Fixed by #546
Closed

OVH plugin is not compatible with PowerShell 5.1 #545

joshooaj opened this issue Apr 29, 2024 · 0 comments · Fixed by #546
Assignees
Labels
bug Something isn't working

Comments

@joshooaj
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants