Replace LOG.warn with LOG.warning

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

Change-Id: I05f6f184347f579689e44c5d87cc2257caf4cf44
This commit is contained in:
gecong1973 2016-10-04 14:26:31 +08:00
parent 42cf0a3870
commit a2c925e44d
1 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class KubeResourceTypeStatus(object):
# Check input args
if resource_type == 'disk':
LOG.warn('resource_type disk is not supported yet')
LOG.warning('resource_type disk is not supported yet')
return
# Initialize internal vars
@ -80,8 +80,8 @@ class KubeResourceTypeStatus(object):
# Skip unsupported script templates
if file_.endswith('.sh.j2'):
LOG.warn('Shell templates are not supported yet. '
'Skipping processing status of {}'.format(file_))
LOG.warning('Shell templates are not supported yet. '
'Skipping processing status of {}'.format(file_))
continue
krt = KubeResourceTemplateStatus(