From 021a8e784dce1964ebaddcb5059a6474172f6021 Mon Sep 17 00:00:00 2001 From: modulos Date: Tue, 23 May 2017 10:36:57 +0200 Subject: [PATCH] Remove 'public-' prefix --- opennebula_api/serializers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opennebula_api/serializers.py b/opennebula_api/serializers.py index c72af4e3..577dec28 100644 --- a/opennebula_api/serializers.py +++ b/opennebula_api/serializers.py @@ -73,8 +73,7 @@ class VirtualMachineTemplateSerializer(serializers.Serializer): return int(obj.template.memory)/1024 def get_name(self, obj): - # TODO: Filter public- away - return obj.name + return obj.name.strip('public-') class VirtualMachineSerializer(serializers.Serializer): """Serializer to map the virtual machine instance into JSON format."""