From 6baf989547eb04202fd8469586d869502222812a Mon Sep 17 00:00:00 2001 From: PCoder Date: Fri, 16 Mar 2018 09:32:00 +0100 Subject: [PATCH] Replace strip with lstrip --- datacenterlight/management/commands/fetchvmtemplates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacenterlight/management/commands/fetchvmtemplates.py b/datacenterlight/management/commands/fetchvmtemplates.py index 15b76fc1..16970705 100644 --- a/datacenterlight/management/commands/fetchvmtemplates.py +++ b/datacenterlight/management/commands/fetchvmtemplates.py @@ -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)