mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
InvokeNetboxRequest: Add to Splat NetboxInvokeParams
This commit is contained in:
parent
254a2798ac
commit
1a2484db2c
1 changed files with 2 additions and 0 deletions
|
|
@ -47,6 +47,8 @@ function InvokeNetboxRequest {
|
||||||
'Verbose' = $VerbosePreference
|
'Verbose' = $VerbosePreference
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$splat += Get-NetboxInvokeParams
|
||||||
|
|
||||||
if ($Body) {
|
if ($Body) {
|
||||||
Write-Verbose "BODY: $($Body | ConvertTo-Json -Compress)"
|
Write-Verbose "BODY: $($Body | ConvertTo-Json -Compress)"
|
||||||
$null = $splat.Add('Body', ($Body | ConvertTo-Json -Compress))
|
$null = $splat.Add('Body', ($Body | ConvertTo-Json -Compress))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue