mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-04 05:12:32 +00:00 
			
		
		
		
	Fix mistake in listing profiles
Additionally, remove redundant function definition.
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user