Author: yusaku
Date: Fri Jan 11 03:34:21 2013
New Revision: 1431862

URL: http://svn.apache.org/viewvc?rev=1431862&view=rev
Log:
AMBARI-1160. Cannot add a hostname that has a number next to . in it. (yusaku)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/ambari-web/app/controllers/wizard/step2_controller.js

Modified: incubator/ambari/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1431862&r1=1431861&r2=1431862&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Jan 11 03:34:21 2013
@@ -695,6 +695,9 @@ AMBARI-666 branch (unreleased changes)
 
   BUG FIXES
 
+  AMBARI-1160. Cannot add a hostname that has a number next to . in it.
+  (yusaku)
+
   AMBARI-1139. Disable Misc section in Customize Services page of the Install
   Wizard. (Srimanth Gunturi via yusaku) 
 

Modified: 
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step2_controller.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/wizard/step2_controller.js?rev=1431862&r1=1431861&r2=1431862&view=diff
==============================================================================
--- 
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step2_controller.js 
(original)
+++ 
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step2_controller.js 
Fri Jan 11 03:34:21 2013
@@ -43,8 +43,10 @@ App.WizardStep2Controller = Em.Controlle
   }.property('manualInstall'),
 
   isHostNameValid: function (hostname) {
-    // For now hostnames that start or end with '-' are not allowed and 
hostname should be valid
-    return validator.isHostname(hostname) && (!(/^\-/.test(hostname) || 
/\-$/.test(hostname)));
+    // disabling hostname validation as we don't want to be too restrictive 
and disallow
+    // user's hostnames
+    // return validator.isHostname(hostname) && (!(/^\-/.test(hostname) || 
/\-$/.test(hostname)));
+    return true;
   },
 
   updateHostNameArr: function(){


Reply via email to