Skip to content

Commit a6ea0c1

Browse files
committed
Added IgnoreCase for Kind Exchange and Direct
1 parent af5f780 commit a6ea0c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Peering/Peering/Peering/GetAzurePeeringLocationCommand.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private object ListByLocation(List<PSPeeringLocation> peeringLocation, string s)
113113
var newPsPeeringLocations = new List<PSPeeringLocationObject>();
114114
foreach (var psPeeringLocation in peeringLocation)
115115
{
116-
if (this.Kind.Equals(Constants.Exchange))
116+
if (this.Kind.Equals(Constants.Exchange, StringComparison.OrdinalIgnoreCase))
117117
{
118118
if (psPeeringLocation.Name.Equals(s, StringComparison.OrdinalIgnoreCase))
119119
{
@@ -125,7 +125,7 @@ private object ListByLocation(List<PSPeeringLocation> peeringLocation, string s)
125125
}
126126
}
127127

128-
if (this.Kind.Equals(Constants.Direct))
128+
if (this.Kind.Equals(Constants.Direct, StringComparison.OrdinalIgnoreCase))
129129
{
130130
if (psPeeringLocation.Name.Equals(s, StringComparison.OrdinalIgnoreCase))
131131
{
@@ -158,7 +158,7 @@ private PSPeeringLocationObject GetByFacilityId(List<PSPeeringLocation> peeringL
158158
{
159159
foreach (var psPeeringLocation in peeringLocation)
160160
{
161-
if (this.Kind.Equals(Constants.Exchange))
161+
if (this.Kind.Equals(Constants.Exchange, StringComparison.OrdinalIgnoreCase))
162162
{
163163
var numFacilities = psPeeringLocation.Exchange.PeeringFacilities.Count;
164164
for (int i = 0; i < numFacilities; i++)
@@ -170,7 +170,7 @@ private PSPeeringLocationObject GetByFacilityId(List<PSPeeringLocation> peeringL
170170
}
171171
}
172172

173-
if (this.Kind.Equals(Constants.Direct))
173+
if (this.Kind.Equals(Constants.Direct, StringComparison.OrdinalIgnoreCase))
174174
{
175175
var numFacilities = psPeeringLocation.Direct.PeeringFacilities.Count;
176176
for (int i = 0; i < numFacilities; i++)
@@ -191,7 +191,7 @@ private List<PSPeeringLocationObject> ConvertToPsObject(List<PSPeeringLocation>
191191
var newPsPeeringLocations = new List<PSPeeringLocationObject>();
192192
foreach (var location in peeringLocation)
193193
{
194-
if (location.Direct != null && location.Kind == Constants.Direct)
194+
if (location.Direct != null && location.Kind.Equals(Constants.Direct, StringComparison.OrdinalIgnoreCase))
195195
{
196196
var numFacilities = location.Direct.PeeringFacilities.Count;
197197
for (int i = 0; i < numFacilities; i++)
@@ -200,7 +200,7 @@ private List<PSPeeringLocationObject> ConvertToPsObject(List<PSPeeringLocation>
200200
}
201201
}
202202

203-
if (location.Exchange != null && location.Kind == Constants.Exchange)
203+
if (location.Exchange != null && location.Kind.Equals(Constants.Exchange, StringComparison.OrdinalIgnoreCase))
204204
{
205205
var numFacilities = location.Exchange.PeeringFacilities.Count;
206206
for (int i = 0; i < numFacilities; i++)

0 commit comments

Comments
 (0)