This is an automated email from the ASF dual-hosted git repository.

jluniya pushed a commit to branch branch-feature-AMBARI-14714
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-feature-AMBARI-14714 by 
this push:
     new e38b715  AMBARI-24046. Fix the incorrect string from config_name to 
config-name in mpack_advisor.py (#1480)
e38b715 is described below

commit e38b715a903162defa8ca17c17ed2de68fb4200e
Author: swapanshridhar <sshrid...@hortonworks.com>
AuthorDate: Wed Jun 6 14:30:55 2018 -0700

    AMBARI-24046. Fix the incorrect string from config_name to config-name in 
mpack_advisor.py (#1480)
---
 ambari-server/src/main/resources/stacks/mpack_advisor.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ambari-server/src/main/resources/stacks/mpack_advisor.py 
b/ambari-server/src/main/resources/stacks/mpack_advisor.py
index f5c3530..ddb9058 100644
--- a/ambari-server/src/main/resources/stacks/mpack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/mpack_advisor.py
@@ -1548,13 +1548,13 @@ class MpackAdvisorImpl(MpackAdvisor):
               userValue = 
convertToNumber(configurations[configName]["properties"][propertyName])
               maxValue = 
convertToNumber(recommendedDefaults[configName]["property_attributes"][propertyName]["maximum"])
               if userValue > maxValue:
-                validationItems.extend([{"config_name": propertyName, "item": 
self.getWarnItem("Value is greater than the recommended maximum of {0} 
".format(maxValue))}])
+                validationItems.extend([{"config-name": propertyName, "item": 
self.getWarnItem("Value is greater than the recommended maximum of {0} 
".format(maxValue))}])
             if "minimum" in 
recommendedDefaults[configName]["property_attributes"][propertyName] and \
                     propertyName in 
recommendedDefaults[configName]["properties"]:
               userValue = 
convertToNumber(configurations[configName]["properties"][propertyName])
               minValue = 
convertToNumber(recommendedDefaults[configName]["property_attributes"][propertyName]["minimum"])
               if userValue < minValue:
-                validationItems.extend([{"config_name": propertyName, "item": 
self.getWarnItem("Value is less than the recommended minimum of {0} 
".format(minValue))}])
+                validationItems.extend([{"config-name": propertyName, "item": 
self.getWarnItem("Value is less than the recommended minimum of {0} 
".format(minValue))}])
       validatedItems = self.toConfigurationValidationProblems(validationItems, 
configName)
       for validatedItem in validatedItems:
         item = dict(itemHead.items() + validatedItem.items())

-- 
To stop receiving notification emails like this one, please contact
jlun...@apache.org.

Reply via email to