Skip to content

Commit

Permalink
Fixed OVH bug that prevented record creation at zone apex. Added bett…
Browse files Browse the repository at this point in the history
…er debug logging. (#535)
  • Loading branch information
rmbolger committed Mar 8, 2024
1 parent a11b418 commit af6e296
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Posh-ACME/Plugins/OVH.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,18 @@ function Invoke-OVHRest {
'X-Ovh-Consumer' = $c.ConsumerKey
}
ContentType = 'application/json'
Verbose = $false
ErrorAction = 'Stop'
}
# add the body if there is one
if ($Body) { $restArgs.Body = $Body }

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

function Find-OVHDomain {
Expand Down Expand Up @@ -456,6 +463,7 @@ function Get-OVHTxtRecords {
[CmdletBinding()]
param(
[Parameter(Mandatory)]
[AllowEmptyString()]
[string]$RecordShort,
[Parameter(Mandatory)]
[string]$Domain
Expand Down

0 comments on commit af6e296

Please sign in to comment.