diff --git a/awx/main/wsrelay.py b/awx/main/wsrelay.py index 5f3d165153..833cdcc7b8 100644 --- a/awx/main/wsrelay.py +++ b/awx/main/wsrelay.py @@ -339,7 +339,7 @@ class WebSocketRelayManager(object): if deleted_remote_hosts: logger.info(f"Removing {deleted_remote_hosts} from websocket broadcast list") - await asyncio.gather(self.cleanup_offline_host(h) for h in deleted_remote_hosts) + await asyncio.gather(*[self.cleanup_offline_host(h) for h in deleted_remote_hosts]) if new_remote_hosts: logger.info(f"Adding {new_remote_hosts} to websocket broadcast list")