Follow up on new execution node creation

- hop nodes are descoped
- links need to be created on execution node creation
- expose the 'edit' capabilities on the instance serializer
This commit is contained in:
Jeff Bradberry
2022-08-30 12:12:03 -04:00
parent dba03616f4
commit 3bc86ca8cb
4 changed files with 9 additions and 8 deletions

View File

@@ -641,7 +641,7 @@ RECEPTOR_CONFIG_STARTER = (
def write_receptor_config():
receptor_config = list(RECEPTOR_CONFIG_STARTER)
instances = Instance.objects.exclude(node_type='control')
instances = Instance.objects.filter(node_type=Instance.Types.EXECUTION)
for instance in instances:
peer = {'tcp-peer': {'address': f'{instance.hostname}:{instance.listener_port}', 'tls': 'tlsclient'}}
receptor_config.append(peer)