Explorar el Código

Return instance RAM in GB, per #115

Enis Afgan hace 8 años
padre
commit
27828814d7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      cloudbridge/cloud/providers/gce/resources.py

+ 1 - 1
cloudbridge/cloud/providers/gce/resources.py

@@ -119,7 +119,7 @@ class GCEVMType(BaseVMType):
 
     @property
     def ram(self):
-        return self._inst_dict.get('memoryMb')
+        return float("{0:.2f}".format(self._inst_dict.get('memoryMb') / 1024))
 
     @property
     def size_root_disk(self):