You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Masahiro Tanaka (JIRA)" <ji...@apache.org> on 2017/09/11 01:35:02 UTC
[jira] [Created] (AMBARI-21921) A print_warning_msg() in
serverConfiguration.py has too few arguments.
Masahiro Tanaka created AMBARI-21921:
----------------------------------------
Summary: 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
{{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)