Remove 'public-' prefix
This commit is contained in:
parent
e782290eeb
commit
021a8e784d
1 changed files with 1 additions and 2 deletions
|
@ -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."""
|
||||
|
|
Loading…
Reference in a new issue