Repository: ambari Updated Branches: refs/heads/trunk 2c5de15b3 -> 05db279fd
AMBARI-16239: Incorrect warning for not selecting nfs_gateway_hosts (rzang) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/05db279f Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/05db279f Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/05db279f Branch: refs/heads/trunk Commit: 05db279fd7ae846402a6c5420f5b6d4d26b5d293 Parents: 2c5de15 Author: Richard Zang <[email protected]> Authored: Tue May 3 18:04:53 2016 -0700 Committer: Richard Zang <[email protected]> Committed: Tue May 3 18:05:39 2016 -0700 ---------------------------------------------------------------------- ambari-web/app/models/configs/objects/service_config_property.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/05db279f/ambari-web/app/models/configs/objects/service_config_property.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/models/configs/objects/service_config_property.js b/ambari-web/app/models/configs/objects/service_config_property.js index a244dfd..24f648b 100644 --- a/ambari-web/app/models/configs/objects/service_config_property.js +++ b/ambari-web/app/models/configs/objects/service_config_property.js @@ -316,7 +316,7 @@ App.ServiceConfigProperty = Em.Object.extend({ validate: function () { if (!this.get('isEditable')) { this.set('errorMessage', ''); // do not perform validation for not editable configs - } else if ((this.get('value') + '').length === 0) { + } else if ((typeof this.get('value') != 'object') && ((this.get('value') + '').length === 0)) { this.set('errorMessage', this.get('isRequired') ? Em.I18n.t('errorMessage.config.required') : ''); } else { this.set('errorMessage', this.validator(this.get('value'), this.get('name'), this.get('retypedPassword')));
