Skip to content

Commit 9c5026a

Browse files
committed
VPNIPSec: Add back blankline and remove q_origin_key parameter
it is an internal parameter (and duplicate with name)
1 parent c87592e commit 9c5026a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Src/Private/Get-AbrFgtVPNIPsec.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,16 @@ function Get-AbrFgtVPNIPsec {
9191

9292
foreach ($v1 in $vpn_ph1) {
9393
Section -Style Heading3 "Phase 1: $($v1.name)" {
94+
BlankLine
9495
$OutObj = @()
9596

9697
foreach ($properties in $v1.PSObject.properties) {
9798
$value = ""
9899
$name = $properties.name
100+
#Remove q_origin_key (the same of name and it is an internal parameter)
101+
if ($name -eq "q_origin_key") {
102+
continue
103+
}
99104
#Skip System Object array (display after with children)
100105
if ($properties.typeNameOfValue -ne "System.Object[]") {
101106
$value = [string]$properties.value
@@ -201,11 +206,16 @@ function Get-AbrFgtVPNIPsec {
201206

202207
foreach ($v2 in $vpn_ph2) {
203208
Section -Style Heading3 "Phase 2: $($v2.name) ($($v2.phase1name))" {
209+
BlankLine
204210
$OutObj = @()
205211

206212
foreach ($properties in $v2.PSObject.properties) {
207213
$value = ""
208214
$name = $properties.name
215+
#Remove q_origin_key (the same of name and it is an internal parameter)
216+
if ($name -eq "q_origin_key") {
217+
continue
218+
}
209219
#Skip System Object array (display after with children)
210220
if ($properties.typeNameOfValue -ne "System.Object[]") {
211221
$value = [string]$properties.value

0 commit comments

Comments
 (0)