Replace strip with lstrip
This commit is contained in:
		
					parent
					
						
							
								6026b96ead
							
						
					
				
			
			
				commit
				
					
						6baf989547
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -15,7 +15,7 @@ class Command(BaseCommand):
 | 
			
		|||
            templates = manager.get_templates()
 | 
			
		||||
            dcl_vm_templates = []
 | 
			
		||||
            for template in templates:
 | 
			
		||||
                template_name = template.name.strip('public-')
 | 
			
		||||
                template_name = template.name.lstrip('public-')
 | 
			
		||||
                template_id = template.id
 | 
			
		||||
                dcl_vm_template = VMTemplate.create(template_name, template_id)
 | 
			
		||||
                dcl_vm_templates.append(dcl_vm_template)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue