[ https://issues.apache.org/jira/browse/AMBARI-21921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Masahiro Tanaka updated AMBARI-21921: ------------------------------------- Attachment: AMBARI-21921.1.patch > A print_warning_msg() in serverConfiguration.py has too few arguments. > ---------------------------------------------------------------------- > > Key: AMBARI-21921 > URL: https://issues.apache.org/jira/browse/AMBARI-21921 > Project: Ambari > Issue Type: Bug > Affects Versions: trunk > Reporter: Masahiro Tanaka > Assignee: Masahiro Tanaka > Priority: Minor > Attachments: AMBARI-21921.0.patch, AMBARI-21921.1.patch > > > {{update_database_name_property}} function which is in > {{serverConfiguration.py}} uses {{print_warning_msg}} to show a warning when > {{check_database_name_property}} throws {{FatalException}}. > {code} > except FatalException: > properties = get_ambari_properties() > if properties == -1: > err = "Error getting ambari properties" > raise FatalException(-1, err) > print_warning_msg("{0} property isn't set in {1} . Setting it to default > value - {3}".format(JD > BC_DATABASE_NAME_PROPERTY, AMBARI_PROPERTIES_FILE, > configDefaults.DEFAULT_DB_NAME)) > properties.process_pair(JDBC_DATABASE_NAME_PROPERTY, > configDefaults.DEFAULT_DB_NAME) > conf_file = find_properties_file() > {code} > The argument should be use {code}{0}, {1}, {2}{code}, not {code}{0}, {1}, > {3}{code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)