Skip to content

Commit 9784782

Browse files
committed
VPNIPsec(Phase1): remove debug and move format before (oups)
1 parent 1c544da commit 9784782

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Src/Private/Get-AbrFgtVPNIPsec.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ function Get-AbrFgtVPNIPsec {
103103

104104
#Check the schema of $value
105105
if ($vpn_ph1_schema.PSObject.Properties.Name -contains $name) {
106-
write-verbose "ALG"
107106
if ($properties.typeNameOfValue -eq "System.Object[]") {
108107
$children = $vpn_ph1_schema.$name.children.PSObject.properties.name
109108
#Check if there is a value
@@ -117,6 +116,13 @@ function Get-AbrFgtVPNIPsec {
117116
$default = ""
118117
}
119118
}
119+
120+
#Format value (add comma) and default for specific parameters (dhgrp, proposal, signature-hash-alg)
121+
if($name -eq "dhgrp" -or $name -eq "proposal" -or $name -eq "signature-hash-alg") {
122+
$value = $value -replace " ", ", "
123+
$default = $default -replace " ", ", "
124+
}
125+
120126
$OutObj += [pscustomobject]@{
121127
"Name" = $name
122128
"Value" = $value
@@ -130,12 +136,6 @@ function Get-AbrFgtVPNIPsec {
130136
ColumnWidths = 34, 33, 33
131137
}
132138

133-
#Format value (add comma) and default for specific parameters (dhgrp, proposal, signature-hash-alg)
134-
if($name -eq "dhgrp" -or $name -eq "proposal" -or $name -eq "signature-hash-alg") {
135-
$value = $value -replace " ", ", "
136-
$default = $default -replace " ", ", "
137-
}
138-
139139
if ($Report.ShowTableCaptions) {
140140
$TableParams['Caption'] = "- $($TableParams.Name)"
141141
}

0 commit comments

Comments
 (0)