Merge pull request #268 from levivm/develop

fixed configuration name in vm detail
This commit is contained in:
Levi Velázquez 2017-05-23 11:59:46 -05:00 committed by GitHub
commit 4dc60c4b1a

View file

@ -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]