ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Masahiro Tanaka (JIRA)" <>
Subject [jira] [Created] (AMBARI-21921) A print_warning_msg() in has too few arguments.
Date Mon, 11 Sep 2017 01:35:02 GMT
Masahiro Tanaka created AMBARI-21921:

             Summary: A print_warning_msg() in has too few arguments.
                 Key: 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 {{}} uses {{print_warning_msg}}
to show a warning when {{check_database_name_property}} throws {{FatalException}}.

  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
    properties.process_pair(JDBC_DATABASE_NAME_PROPERTY, configDefaults.DEFAULT_DB_NAME)
    conf_file = find_properties_file()

The argument should be use {code}{0}, {1}, {2}{code}, not {code}{0}, {1}, {3}{code}

This message was sent by Atlassian JIRA

View raw message