Adresses https://github.com/gvlproject/cloudbridge/issues/115 (except for the GCE provider)
@@ -58,3 +58,8 @@ target/
*.DS_Store
/venv/
+
+bootstrap.py
+ISB-*
+launch.json
+settings.json
@@ -1768,10 +1768,10 @@ class VMType(CloudResource):
@abstractproperty
def ram(self):
"""
- The amount of RAM (in MB) supported by this VM type.
+ The amount of RAM (in GB) supported by this VM type.
- :rtype: ``int``
- :return: Total RAM (in MB).
+ :rtype: ``float``
+ :return: Total RAM (in GB).
pass
@@ -1481,7 +1481,7 @@ class AzureVMType(BaseVMType):
@property
- return self._vm_type.memory_in_mb
+ return int(self._vm_type.memory_in_mb) / 1024
def size_root_disk(self):
@@ -211,7 +211,7 @@ class OpenStackVMType(BaseVMType):
- return self._os_flavor.ram
+ return int(self._os_flavor.ram) / 1024