From f98493aa6158e9900500fb8f2652662df6d89a6f Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Mon, 22 Jan 2024 11:41:00 -0500 Subject: [PATCH] Support wss as ws-listener in the Receptor config --- awx/api/views/instance_install_bundle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/api/views/instance_install_bundle.py b/awx/api/views/instance_install_bundle.py index 481febe257..eefb9d0b6a 100644 --- a/awx/api/views/instance_install_bundle.py +++ b/awx/api/views/instance_install_bundle.py @@ -133,7 +133,8 @@ def generate_group_vars_all_yml(instance_obj): canonical_addr = instance_obj.canonical_address if canonical_addr: context['listener_port'] = canonical_addr.port - context['listener_protocol'] = canonical_addr.protocol + protocol = canonical_addr.protocol if canonical_addr.protocol != 'wss' else 'ws' + context['listener_protocol'] = protocol all_yaml = render_to_string("instance_install_bundle/group_vars/all.yml", context=context) # convert consecutive newlines with a single newline