浏览代码

AMBARI-2655. Convert hosts entered during boostrap (Installer step2) to lower-case. (Antonenko Alexander via yusaku)

Yusaku Sako 12 年之前
父节点
当前提交
7f00dbc2ce
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      ambari-web/app/controllers/wizard/step2_controller.js
  2. 4 0
      ambari-web/app/styles/application.less

+ 1 - 1
ambari-web/app/controllers/wizard/step2_controller.js

@@ -58,7 +58,7 @@ App.WizardStep2Controller = Em.Controller.extend({
    * set not installed hosts to the hostNameArr
    */
   updateHostNameArr: function(){
-    this.hostNameArr = this.get('hostNames').trim().split(new RegExp("\\s+", "g"));
+    this.hostNameArr = this.get('hostNames').trim().toLowerCase().split(new RegExp("\\s+", "g"));
     this.patternExpression();
     this.get('inputtedAgainHostNames').clear();
     var installedHostNames = App.Host.find().mapProperty('hostName');

+ 4 - 0
ambari-web/app/styles/application.less

@@ -312,6 +312,10 @@ h1 {
     #targetHosts {
       .target-hosts-input {
         padding-left: 18px;
+
+        textarea{
+          text-transform: lowercase;
+        }
       }
     }
     .span6 {