From da3194fee33ccfbe4615f4678f4e4207e91baa76 Mon Sep 17 00:00:00 2001 From: Levi Date: Tue, 23 May 2017 11:58:48 -0500 Subject: [PATCH] fixed configuration name in vm detail --- opennebula_api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opennebula_api/serializers.py b/opennebula_api/serializers.py index a472105f..6c86776a 100644 --- a/opennebula_api/serializers.py +++ b/opennebula_api/serializers.py @@ -151,7 +151,7 @@ class VirtualMachineSerializer(serializers.Serializer): def get_configuration(self, obj): template_id = obj.template.template_id template = OpenNebulaManager().get_template(template_id) - return template.name + return template.name.strip('public-') def get_ipv4(self, obj): nic = obj.template.nics[0]