Skip to content

Commit 20c5b02

Browse files
committed
adjusted formatting after testing
1 parent 69b6d13 commit 20c5b02

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/ResourceManager/Network/Commands.Network/ApplicationGateway/ApplicationGatewayPowerShellFormatting.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ public static string Format(PSApplicationGatewaySslPredefinedPolicy policy, int
148148
foreach (var cipher in policy.CipherSuites)
149149
{
150150
output.AppendFormat("{0}{1}", prefix, cipher);
151+
output.AppendLine();
151152
}
153+
output.AppendLine();
152154

153155
return output.ToString();
154156
}
@@ -167,31 +169,35 @@ public static string Format(PSApplicationGatewayAvailableSslOptions availableSsl
167169
prefix = new string(' ', depth * ApplicationGatewayPowerShellFormatting.TabSize);
168170
foreach (var policy in availableSslOptions.PredefinedPolicies)
169171
{
170-
output.AppendFormat("{0}{1}", prefix, policy);
172+
output.AppendFormat("{0}{1}", prefix, policy.Id);
173+
output.AppendLine();
171174
}
172-
depth--;
173175
output.AppendLine();
174176

177+
depth--;
178+
prefix = new string(' ', depth * ApplicationGatewayPowerShellFormatting.TabSize);
175179
output.AppendFormat("{0}{1}:", prefix, "AvailableCipherSuites");
176180
output.AppendLine();
177181
depth++;
178182
prefix = new string(' ', depth * ApplicationGatewayPowerShellFormatting.TabSize);
179183
foreach (var cipher in availableSslOptions.AvailableCipherSuites)
180184
{
181185
output.AppendFormat("{0}{1}", prefix, cipher);
186+
output.AppendLine();
182187
}
183-
depth--;
184188
output.AppendLine();
185189

190+
depth--;
191+
prefix = new string(' ', depth * ApplicationGatewayPowerShellFormatting.TabSize);
186192
output.AppendFormat("{0}{1}:", prefix, "AvailableProtocols");
187193
output.AppendLine();
188194
depth++;
189195
prefix = new string(' ', depth * ApplicationGatewayPowerShellFormatting.TabSize);
190196
foreach (var protocol in availableSslOptions.AvailableProtocols)
191197
{
192198
output.AppendFormat("{0}{1}", prefix, protocol);
199+
output.AppendLine();
193200
}
194-
depth--;
195201

196202
return output.ToString();
197203
}

0 commit comments

Comments
 (0)