mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Fix up logger .warn() calls to use .warning() instead
This is a usage that was deprecated in Python 3.0.
This commit is contained in:
@@ -247,7 +247,7 @@ class Instance(HasPolicyEditsMixin, BaseModel):
|
||||
|
||||
if uuid is not None and self.uuid != uuid:
|
||||
if self.uuid is not None:
|
||||
logger.warn(f'Self-reported uuid of {self.hostname} changed from {self.uuid} to {uuid}')
|
||||
logger.warning(f'Self-reported uuid of {self.hostname} changed from {self.uuid} to {uuid}')
|
||||
self.uuid = uuid
|
||||
update_fields.append('uuid')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user