Rename deprecated 'warn' to 'warning' in logging

Change-Id: I5b21817362ef4f71d70e8d446b878372f7941bd2
This commit is contained in:
Mike Fedosin 2017-03-27 18:07:14 +03:00
parent 36f0e7318d
commit 27d3dab1c6
2 changed files with 4 additions and 4 deletions

View File

@ -45,8 +45,8 @@ def print_artifact(client, data, type_name):
def get_artifact_id(client, parsed_args):
if parsed_args.id:
if parsed_args.artifact_version != 'latest':
LOG.warn('Specified version is not considered when '
'receiving of the artifact by ID.')
LOG.warning('Specified version is not considered when '
'receiving of the artifact by ID.')
return parsed_args.name
return client.artifacts.get_by_name(parsed_args.name,

View File

@ -40,8 +40,8 @@ def _default_blob_property(type_name):
def get_artifact_id(client, parsed_args):
if parsed_args.id:
if parsed_args.artifact_version != 'latest':
LOG.warn('Specified version is not considered when '
'receiving of the artifact by ID.')
LOG.warning('Specified version is not considered when '
'receiving of the artifact by ID.')
return parsed_args.name
return client.artifacts.get_by_name(parsed_args.name,