Replace strip with lstrip

This commit is contained in:
PCoder 2018-03-16 09:32:00 +01:00
parent 6026b96ead
commit 6baf989547

View file

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