This commit is contained in:
Nico Schottelius 2020-02-23 15:09:58 +01:00
parent 94633d6cc8
commit cee45b5227

View file

@ -15,7 +15,7 @@ class VM(models.Model):
def cores(self):
return int(self.data['TEMPLATE']['VCPU'])
@propertyx
@property
def ram_in_gb(self):
return (int(self.data['TEMPLATE']['MEMORY'])/1024.)