Merge "Rename deprecated 'warn' to 'warning' in logging"

This commit is contained in:
Jenkins 2017-03-27 16:04:46 +00:00 committed by Gerrit Code Review
commit 5d7684cf34
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,