Skip to content

Commit 2d19361

Browse files
Merge pull request #6814 from microsoft/fix-validation
Fix validation for dns name prefix
2 parents 7b55be9 + 3f2629d commit 2d19361

File tree

1 file changed

+3
-3
lines changed
  • PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-containerservice/src/main/java/com/microsoft/azure/toolkit/intellij/containerservice/creation

1 file changed

+3
-3
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-containerservice/src/main/java/com/microsoft/azure/toolkit/intellij/containerservice/creation/KubernetesCreationDialog.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ private AzureValidationInfo validateKubernetesClusterName() {
263263
private AzureValidationInfo validateDnsNamePrefix() {
264264
final String name = txtDnsPrefix.getValue();
265265
if (StringUtils.isEmpty(name)) {
266-
return AzureValidationInfo.error(AzureMessageBundle.message("kubernetes.cluster.dnsNamePrefix.validate.empty").toString(), txtName);
266+
return AzureValidationInfo.error(AzureMessageBundle.message("kubernetes.cluster.dnsNamePrefix.validate.empty").toString(), txtDnsPrefix);
267267
}
268268
if (!DNS_NAME_PREFIX_PATTERN.matcher(name).matches()) {
269-
return AzureValidationInfo.error(AzureMessageBundle.message("kubernetes.cluster.dnsNamePrefix.validate.invalid").toString(), txtName);
269+
return AzureValidationInfo.error(AzureMessageBundle.message("kubernetes.cluster.dnsNamePrefix.validate.invalid").toString(), txtDnsPrefix);
270270
}
271-
return AzureValidationInfo.success(txtName);
271+
return AzureValidationInfo.success(txtDnsPrefix);
272272
}
273273

274274
// CHECKSTYLE IGNORE check FOR NEXT 1 LINES

0 commit comments

Comments
 (0)