Correct a noisy DeprecationWarning

Let's drop this annoying thing:
/usr/lib/python3.6/site-packages/tripleoclient/workflows/plan_management.py:328: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  "Updating plan with passwords.".format(name))

Change-Id: Ia161b57b1442c2cc4bc83b1c7f94bfaf59548e2c
This commit is contained in:
Cédric Jeanneret 2021-01-22 13:22:00 +01:00
parent 49a3f9cbd1
commit f7fd2ed9eb
1 changed files with 2 additions and 2 deletions

View File

@ -324,8 +324,8 @@ def _load_passwords(swift_client, name):
if "passwords" in plan_env:
return plan_env['passwords']
else:
LOG.warn("No passwords found in existing plan {}. "
"Updating plan with passwords.".format(name))
LOG.warning("No passwords found in existing plan {}. "
"Updating plan with passwords.".format(name))
def _update_passwords(swift_client, name, passwords):