Skip to content

Commit edd4c4c

Browse files
Ignore case while issuing warning to private zones ending with .local
1 parent 5d6b07e commit edd4c4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PrivateDns/PrivateDns/Zones/NewAzurePrivateDnsZone.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using System;
16+
1517
namespace Microsoft.Azure.Commands.PrivateDns.Zones
1618
{
1719
using System.Collections;
@@ -41,7 +43,7 @@ public class NewAzurePrivateDnsZone : PrivateDnsBaseCmdlet
4143
public override void ExecuteCmdlet()
4244
{
4345
this.Name = TrimTrailingDotInZoneName(this.Name);
44-
if (this.Name.EndsWith(".local"))
46+
if (this.Name.EndsWith(".local", StringComparison.OrdinalIgnoreCase))
4547
{
4648
this.WriteWarning(ProjectResources.Warning_ZoneNameEndsWithLocal);
4749
}

0 commit comments

Comments
 (0)