瀏覽代碼

AMBARI-6825. Balancer threshold has invalid range. (Max Shepel via akovalenko)

Aleksandr Kovalenko 11 年之前
父節點
當前提交
78605d25db
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      ambari-web/app/controllers/main/service/item.js

+ 1 - 4
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');