mirror of
https://github.com/ansible/awx.git
synced 2026-06-26 00:48:02 -02:30
Make ip_address read only
Setting a different value for ip_address and hostname does not work with the current way we create receptor certs.
This commit is contained in:
@@ -703,8 +703,7 @@ def generate_config_data():
|
||||
|
||||
receptor_config = list(RECEPTOR_CONFIG_STARTER)
|
||||
for instance in instances:
|
||||
host_or_ip = instance.ip_address or instance.hostname
|
||||
peer = {'tcp-peer': {'address': f'{host_or_ip}:{instance.listener_port}', 'tls': 'tlsclient'}}
|
||||
peer = {'tcp-peer': {'address': f'{instance.hostname}:{instance.listener_port}', 'tls': 'tlsclient'}}
|
||||
receptor_config.append(peer)
|
||||
should_update = should_update_config(instances)
|
||||
return receptor_config, should_update
|
||||
|
||||
Reference in New Issue
Block a user