We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d6b07e commit edd4c4cCopy full SHA for edd4c4c
src/PrivateDns/PrivateDns/Zones/NewAzurePrivateDnsZone.cs
@@ -12,6 +12,8 @@
12
// limitations under the License.
13
// ----------------------------------------------------------------------------------
14
15
+using System;
16
+
17
namespace Microsoft.Azure.Commands.PrivateDns.Zones
18
{
19
using System.Collections;
@@ -41,7 +43,7 @@ public class NewAzurePrivateDnsZone : PrivateDnsBaseCmdlet
41
43
public override void ExecuteCmdlet()
42
44
45
this.Name = TrimTrailingDotInZoneName(this.Name);
- if (this.Name.EndsWith(".local"))
46
+ if (this.Name.EndsWith(".local", StringComparison.OrdinalIgnoreCase))
47
48
this.WriteWarning(ProjectResources.Warning_ZoneNameEndsWithLocal);
49
}
0 commit comments