From eec20a64572f49a1f8e98fb1c634f0ac52e01712 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 1 Nov 2022 13:51:54 -0400 Subject: [PATCH] Rename discovery remote to subscription This will implement a consistent vocabulary --- confluent_server/confluent/discovery/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index 42d16c85..c502a05c 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -435,7 +435,7 @@ def handle_api_request(configmanager, inputdata, operation, pathcomponents, affl raise exc.InvalidArgumentException() rescan() return (msg.KeyValueData({'rescan': 'started'}),) - elif operation in ('update', 'create') and pathcomponents == ['discovery', 'remote']: + elif operation in ('update', 'create') and pathcomponents == ['discovery', 'subscription']: if 'subscribe' in inputdata: target = inputdata['subscribe'] affluent.subscribe_discovery(target, configmanager, collective.get_myname()) @@ -495,7 +495,7 @@ def handle_read_api_request(pathcomponents): dirlist = [msg.ChildCollection(x + '/') for x in sorted(list(subcats))] dirlist.append(msg.ChildCollection('rescan')) dirlist.append(msg.ChildCollection('autosense')) - dirlist.append(msg.ChildCollection('remote')) + dirlist.append(msg.ChildCollection('subscription')) return dirlist if not coll: return show_info(queryparms['by-mac'])