Skip to content

Commit

Permalink
Fix #545 - Replace OVH ternary operator for PS 5.1 compatibility (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshooaj authored Apr 30, 2024
1 parent 2d4cfe2 commit 83cb4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Posh-ACME/Plugins/OVH.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ function Invoke-OVHRest {
# add the body if there is one
if ($Body) { $restArgs.Body = $Body }

Write-Debug ('{0} {1}{2}' -f $restArgs.Method,$restArgs.Uri,(($Body) ? "`n$Body" : ''))
Write-Debug ("{0} {1}`n{2}" -f $restArgs.Method,$restArgs.Uri,$restArgs.Body)
$response = Invoke-RestMethod @restArgs @script:UseBasic
if ($response) {
Write-Debug "Response:`n$response"
Expand Down

0 comments on commit 83cb4d2

Please sign in to comment.