diff --git a/opennebula_api/serializers.py b/opennebula_api/serializers.py index 98162d1f..1fa1a802 100644 --- a/opennebula_api/serializers.py +++ b/opennebula_api/serializers.py @@ -130,7 +130,7 @@ class VirtualMachineSerializer(serializers.Serializer): def get_price(self, obj): template = obj.template - price = float(template.cpu * 10) * 5.0 + price = float(template.cpu) * 10 * 5.0 price += (int(template.memory) / 1024 * 2.0) for disk in template.disks: price += int(disk.size) / 1024 * 0.6