From f90b881b4fd45cbff53a417f19f9886c4024aa07 Mon Sep 17 00:00:00 2001 From: TehMuffinMoo Date: Fri, 6 Sep 2024 08:38:51 +0100 Subject: [PATCH] Fix bug with Start-B1Export and -Bootstrap parameter --- Modules/ibPS/Functions/BloxOne/BloxOneCloud/Start-B1Export.ps1 | 2 +- Modules/ibPS/Functions/Misc/Misc.ps1 | 2 +- RELEASE.md | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Modules/ibPS/Functions/BloxOne/BloxOneCloud/Start-B1Export.ps1 b/Modules/ibPS/Functions/BloxOne/BloxOneCloud/Start-B1Export.ps1 index cdc22de7..8979aad4 100644 --- a/Modules/ibPS/Functions/BloxOne/BloxOneCloud/Start-B1Export.ps1 +++ b/Modules/ibPS/Functions/BloxOne/BloxOneCloud/Start-B1Export.ps1 @@ -136,7 +136,7 @@ $dataTypes += (Build-BulkExportTypes -Types 'atcapi').DataType ## Threat Defense Types } if ($Bootstrap -or $BackupAll) { - $dataTypes += (Build-BulkExportTypes -Types 'bootstrap').DataType | Out-Null ## Bootstrap / Host Config + $dataTypes += (Build-BulkExportTypes -Types 'bootstrap').DataType ## Bootstrap / Host Config } if ($B1Hosts -or $BackupAll) { $dataTypes += (Build-BulkExportTypes -Types 'hosts').DataType ## B1 Host Config / Host Config diff --git a/Modules/ibPS/Functions/Misc/Misc.ps1 b/Modules/ibPS/Functions/Misc/Misc.ps1 index c7672573..d69fab3f 100644 --- a/Modules/ibPS/Functions/Misc/Misc.ps1 +++ b/Modules/ibPS/Functions/Misc/Misc.ps1 @@ -1083,7 +1083,7 @@ function Build-BulkExportTypes { ) if (-not $Script:B1BulkExportTypes) { - $Script:B1BulkExportTypes = Invoke-CSP -Method GET -Uri 'https://csp.infoblox.com/bulk/v1/types' | Select-Object -ExpandProperty results + $Script:B1BulkExportTypes = Invoke-CSP -Method GET -Uri "$(Get-B1CSPUrl)/bulk/v1/types" | Select-Object -ExpandProperty results } $ReturnProperties = @{ diff --git a/RELEASE.md b/RELEASE.md index 89895dd4..d81a3586 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1 +1,2 @@ -- Fix bug when using `-Query` parameter on `Get-B1DNSEvent` \ No newline at end of file +- Fix bug when using `-Query` parameter on `Get-B1DNSEvent` +- Fix bug when using `-Bootstrap` parameter on `Start-B1Export` \ No newline at end of file