2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-25 04:32:11 +00:00

Fix mistake in listing profiles

Additionally, remove redundant
function definition.
This commit is contained in:
Jarrod Johnson 2020-05-07 17:06:23 -04:00
parent 853318feba
commit b7c830b041

View File

@ -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