Repository: ambari Updated Branches: refs/heads/trunk 6079ad7e3 -> 78605d25d
AMBARI-6825. Balancer threshold has invalid range. (Max Shepel via akovalenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/78605d25 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/78605d25 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/78605d25 Branch: refs/heads/trunk Commit: 78605d25dbf45777e7b2fab8d510d97a998b3162 Parents: 6079ad7 Author: Aleksandr Kovalenko <[email protected]> Authored: Tue Aug 12 14:37:38 2014 +0300 Committer: Aleksandr Kovalenko <[email protected]> Committed: Tue Aug 12 14:37:38 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/controllers/main/service/item.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/78605d25/ambari-web/app/controllers/main/service/item.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/item.js b/ambari-web/app/controllers/main/service/item.js index 9511b96..f05940e 100644 --- a/ambari-web/app/controllers/main/service/item.js +++ b/ambari-web/app/controllers/main/service/item.js @@ -280,10 +280,7 @@ App.MainServiceItemController = Em.Controller.extend({ errorMessage: Em.I18n.t('services.service.actions.run.rebalanceHdfsNodes.promptError'), isInvalid: function () { var intValue = Number(this.get('inputValue')); - if (this.get('inputValue')!=='DEBUG' && (isNaN(intValue) || intValue < 0 || intValue > 100)) { - return true; - } - return false; + return isNaN(intValue) || intValue < 1 || intValue > 100; }.property('inputValue'), disablePrimary : function() { return this.get('isInvalid');
