Replace deprecated LOG.warn with LOG.warning

LOG.warn is deprecated. This patch updates it to use
the non-deprecated LOG.warning instead.

Change-Id: I8c0277e95009faf19884b2bb14dcb9171f58a0be
Closes-Bug: #1578506
This commit is contained in:
bathri.s 2016-05-05 13:48:21 +05:30
parent c0f87a3a45
commit e1ed848b78

View File

@ -116,10 +116,10 @@ def register_keystoneauth_opts(conf):
def setup_keystoneauth(conf):
if conf[CFG_GROUP].auth_type == "password-vitrage-legacy":
LOG.warn("Value 'password-vitrage-legacy' for '[%s]/auth_type' "
"is deprecated. And will be removed in Vitrage 2.0. "
"Use 'password' instead.",
CFG_GROUP)
LOG.warning("Value 'password-vitrage-legacy' for '[%s]/auth_type' "
"is deprecated. And will be removed in Vitrage 2.0. "
"Use 'password' instead.",
CFG_GROUP)
ka_loading.load_auth_from_conf_options(conf, CFG_GROUP)