Fixed bug where we need to fetch VMs whose names strictly begin with 'public-'
This commit is contained in:
		
					parent
					
						
							
								c92960a3e6
							
						
					
				
			
			
				commit
				
					
						bc2ad28969
					
				
			
		
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -325,7 +325,7 @@ class OpenNebulaManager():
 | 
			
		|||
            public_templates = [
 | 
			
		||||
                template
 | 
			
		||||
                for template in self._get_template_pool()
 | 
			
		||||
                if 'public-' in template.name
 | 
			
		||||
                if template.name.startswith('public-')
 | 
			
		||||
            ]
 | 
			
		||||
            return public_templates
 | 
			
		||||
        except ConnectionRefusedError:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue