Fix LOG.warn to LOG.warning

logging.warn is deprecated in Python 3.
https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: I5cef5a11e4802d9244295e2c871a848d14ab7454
(cherry picked from commit 075fc9e257)
This commit is contained in:
Cao Xuan Hoang 2016-09-26 17:49:07 +07:00 committed by Oleksiy Molchanov
parent e950bee9ed
commit d010708d92
1 changed files with 3 additions and 3 deletions

View File

@ -306,9 +306,9 @@ class Nailgun(base.BaseDataDriver):
try:
user_accounts = self.data['ks_meta']['user_accounts']
except KeyError:
LOG.warn(('This environment does not support non-root accounts '
'on the target nodes. Non-root user accounts will not '
'be created'))
LOG.warning(('This environment does not support non-root accounts '
'on the target nodes. Non-root user accounts will '
'not be created'))
user_accounts = []
for account in user_accounts: