mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 03:30:02 -03: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:
@@ -40,5 +40,5 @@ def supervisor_service_command(command, service='*', communicate=True):
|
||||
|
||||
|
||||
def stop_local_services(communicate=True):
|
||||
logger.warn('Stopping services on this node in response to user action')
|
||||
logger.warning('Stopping services on this node in response to user action')
|
||||
supervisor_service_command(command='stop', communicate=communicate)
|
||||
|
||||
Reference in New Issue
Block a user