diff --git a/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1AuthoritativeZone.ps1 b/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1AuthoritativeZone.ps1 index b6918611..38eba278 100644 --- a/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1AuthoritativeZone.ps1 +++ b/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1AuthoritativeZone.ps1 @@ -84,6 +84,7 @@ $Filters.Add($CustomFilters) | Out-Null } if ($FQDN) { + if ($Strict -and !($FQDN.EndsWith('.'))) { $FQDN += '.' } $Filters.Add("fqdn$MatchType`"$FQDN`"") | Out-Null } if ($Type) { diff --git a/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1DelegatedZone.ps1 b/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1DelegatedZone.ps1 index fb0aca95..51a8e8ae 100644 --- a/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1DelegatedZone.ps1 +++ b/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1DelegatedZone.ps1 @@ -84,6 +84,7 @@ $Filters.Add($CustomFilters) | Out-Null } if ($FQDN) { + if ($Strict -and !($FQDN.EndsWith('.'))) { $FQDN += '.' } $Filters.Add("fqdn$MatchType`"$FQDN`"") | Out-Null } if ($Disabled) { diff --git a/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1ForwardZone.ps1 b/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1ForwardZone.ps1 index df6810d9..4e68fab8 100644 --- a/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1ForwardZone.ps1 +++ b/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1ForwardZone.ps1 @@ -79,6 +79,7 @@ $Filters.Add($CustomFilters) | Out-Null } if ($FQDN) { + if ($Strict -and !($FQDN.EndsWith('.'))) { $FQDN += '.' } $Filters.Add("fqdn$MatchType`"$FQDN`"") | Out-Null } if ($Disabled) { diff --git a/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1Record.ps1 b/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1Record.ps1 index 639f97cf..681395f7 100644 --- a/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1Record.ps1 +++ b/Modules/ibPS/Functions/BloxOne/BloxOneDDI/Get-B1Record.ps1 @@ -113,19 +113,11 @@ $Filters.Add("id==`"$id`"") | Out-Null } if ($FQDN) { - if ($Strict) { - if (!($FQDN.EndsWith("."))) { - $FQDN = "$FQDN." - } - } + if ($Strict -and !($FQDN.EndsWith('.'))) { $FQDN += '.' } $Filters.Add("absolute_name_spec$MatchType`"$FQDN`"") | Out-Null } if ($Zone) { - if ($Strict) { - if (!($Zone.EndsWith("."))) { - $Zone = "$Zone." - } - } + if ($Strict -and !($Zone.EndsWith('.'))) { $Zone += '.' } $Filters.Add("absolute_zone_name$MatchType`"$Zone`"") | Out-Null } if ($Compartment) { diff --git a/Modules/ibPS/Functions/Misc/build.json b/Modules/ibPS/Functions/Misc/build.json index ded7aafa..b750b704 100644 --- a/Modules/ibPS/Functions/Misc/build.json +++ b/Modules/ibPS/Functions/Misc/build.json @@ -1,5 +1,5 @@ { - "Build": "0", - "SHA": "abae0250d7047519e85e439083f328ff2ef137ce", - "Branch": "main" + "Build": 2, + "SHA": "7a890ac176526fbd1d2b0a2784070296b288b17c", + "Branch": "dev" } diff --git a/RELEASE.md b/RELEASE.md index e1644b03..a1452d86 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,3 +1 @@ -- Fix bug when using `-Query` parameter on `Get-B1DNSEvent` -- Fix bug when using `-Bootstrap` parameter on `Start-B1Export` -- Add the ability to pass the API Key via Environment Variables. [More information here](https://ibps.readthedocs.io/en/main/#environment-variable). \ No newline at end of file +- Fix bug when using `-Strict` and `-FQDN` with `Get-B1AuthoritativeZone`, `Get-B1ForwardZone` & `Get-B1DelegatedZone` [#167](https://github.com/TehMuffinMoo/ibPS/issues/167) \ No newline at end of file