From 749735b9416494723566337718feecf7c6e3c0d5 Mon Sep 17 00:00:00 2001 From: joeywashburn <58124021+joeywashburn@users.noreply.github.com> Date: Wed, 4 Feb 2026 09:29:45 -0800 Subject: [PATCH] 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 --- awx/main/wsrelay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/wsrelay.py b/awx/main/wsrelay.py index 38f73c71a3..9e55e3e2c8 100644 --- a/awx/main/wsrelay.py +++ b/awx/main/wsrelay.py @@ -94,7 +94,7 @@ class WebsocketRelayConnection: except asyncio.CancelledError: # TODO: Check if connected and disconnect # 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: logger.warning(f"Connection from {self.name} to {self.remote_host} failed: '{e}'.", exc_info=True) except asyncio.TimeoutError: @@ -291,7 +291,7 @@ class WebSocketRelayManager(object): except asyncio.TimeoutError: logger.warning(f"Tried to cancel relay connection for {hostname} but it timed out during cleanup.") 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 del self.relay_connections[hostname]