From 4c8a4d0be8cd66f3b7ac588d02ecc9c1b047fcc5 Mon Sep 17 00:00:00 2001 From: modulos Date: Tue, 23 May 2017 11:17:38 +0200 Subject: [PATCH] Typo --- 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 622d89f6..d762587f 100644 --- a/opennebula_api/serializers.py +++ b/opennebula_api/serializers.py @@ -155,7 +155,7 @@ class VirtualMachineSerializer(serializers.Serializer): def get_ip(self, obj): nic = obj.template.nics[0] - if 'vm-ipv6-nat64-ipv4' is in nic.network and is_in_v4_range(nic.mac): + if 'vm-ipv6-nat64-ipv4' in nic.network and is_in_v4_range(nic.mac): return str(v4_from_mac(nic.mac)) else: return '-'