Merge pull request #265 from Modulos/remove_prefix
Remove 'public-' prefix
This commit is contained in:
commit
194dfe5064
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