This commit is contained in:
Nico Schottelius 2020-02-23 15:09:58 +01:00
parent 94633d6cc8
commit cee45b5227
1 changed files with 1 additions and 1 deletions

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.)