diff --git a/cloudkeeper_os/imagemanager.py b/cloudkeeper_os/imagemanager.py index bd2058e..1be9194 100644 --- a/cloudkeeper_os/imagemanager.py +++ b/cloudkeeper_os/imagemanager.py @@ -87,7 +87,9 @@ def add_appliance(self, appliance): appliance.ClearField('image') properties = utils.extract_appliance_properties(appliance) - min_ram = int(properties.get("APPLIANCE_RAM", 0)) + + # RAM in AppDB is in bytes + min_ram = int(properties.get("APPLIANCE_RAM", 0)/1048576) properties[IMAGE_STATUS_TAG] = 'ACTIVE'