mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-24 12:11:52 +00:00
Fix mistake in listing profiles
Additionally, remove redundant function definition.
This commit is contained in:
parent
853318feba
commit
b7c830b041
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user