Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It still used in a few places. Updated to non-deprecated LOG.warning. Change-Id: I757a8c0d7c9f81cd35c1eda6adf80fe77b35df49 Closes-Bug:#1508442
This commit is contained in:
parent
5bea1d2547
commit
9366de0118
|
@ -71,8 +71,8 @@ def validate_lp(ctxt, lp_id, assembly_id):
|
|||
if (not image or not image.project_id or not image.status or
|
||||
not image.external_ref or not image.docker_image_name or
|
||||
image.status.lower() != 'ready'):
|
||||
LOG.warn("Error building due to language pack %s not ready."
|
||||
" assembly ID: %s" % (lp_id, assembly_id))
|
||||
LOG.warning("Error building due to language pack %s not ready."
|
||||
" assembly ID: %s" % (lp_id, assembly_id))
|
||||
return
|
||||
|
||||
return image
|
||||
|
|
Loading…
Reference in New Issue