mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Standardize spelling of 'canceled' in wsrelay.py (#16178)
Changed two instances of 'cancelled' to 'canceled' in awx/main/wsrelay.py to match AWX's standardized American English spelling convention. - Updated log message in WebsocketRelayConnection.connect() - Updated comment in WebSocketRelayManager.cleanup_offline_host() Fixes #15177 Signed-off-by: Joey Washburn <joey@joeywashburn.com>
This commit is contained in:
@@ -94,7 +94,7 @@ class WebsocketRelayConnection:
|
|||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
# TODO: Check if connected and disconnect
|
# TODO: Check if connected and disconnect
|
||||||
# Possibly use run_until_complete() if disconnect is async
|
# Possibly use run_until_complete() if disconnect is async
|
||||||
logger.warning(f"Connection from {self.name} to {self.remote_host} cancelled.")
|
logger.warning(f"Connection from {self.name} to {self.remote_host} canceled.")
|
||||||
except client_exceptions.ClientConnectorError as e:
|
except client_exceptions.ClientConnectorError as e:
|
||||||
logger.warning(f"Connection from {self.name} to {self.remote_host} failed: '{e}'.", exc_info=True)
|
logger.warning(f"Connection from {self.name} to {self.remote_host} failed: '{e}'.", exc_info=True)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
@@ -291,7 +291,7 @@ class WebSocketRelayManager(object):
|
|||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
logger.warning(f"Tried to cancel relay connection for {hostname} but it timed out during cleanup.")
|
logger.warning(f"Tried to cancel relay connection for {hostname} but it timed out during cleanup.")
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
# Handle the case where the task was already cancelled by the time we got here.
|
# Handle the case where the task was already canceled by the time we got here.
|
||||||
pass
|
pass
|
||||||
|
|
||||||
del self.relay_connections[hostname]
|
del self.relay_connections[hostname]
|
||||||
|
|||||||
Reference in New Issue
Block a user