From b7c830b0419c01d5f3df1823d36aa35d84c5ec40 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 7 May 2020 17:06:23 -0400 Subject: [PATCH] Fix mistake in listing profiles Additionally, remove redundant function definition. --- confluent_server/confluent/core.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/confluent_server/confluent/core.py b/confluent_server/confluent/core.py index 708a84ee..76b90b46 100644 --- a/confluent_server/confluent/core.py +++ b/confluent_server/confluent/core.py @@ -155,7 +155,7 @@ def handle_deployment(configmanager, inputdata, pathcomponents, if pathcomponents[1] == 'profiles': if len(pathcomponents) == 2: for prof in osimage.list_profiles(): - yield msg.ChildCollection(dist) + yield msg.ChildCollection(prof) return raise exc.NotFoundException('Unrecognized request') @@ -1078,10 +1078,6 @@ def dispatch_request(nodes, manager, element, configmanager, inputdata, yield rsp -def handle_discovery(pathcomponents, operation, configmanager, inputdata): - if pathcomponents[0] == 'detected': - pass - def handle_discovery(pathcomponents, operation, configmanager, inputdata): if pathcomponents[0] == 'detected': pass