Skip to content

Commit 063f658

Browse files
committed
Fix min_ram size unit
1 parent b70ecfe commit 063f658

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cloudkeeper_os/imagemanager.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def add_appliance(self, appliance):
8787
appliance.ClearField('image')
8888

8989
properties = utils.extract_appliance_properties(appliance)
90-
min_ram = int(properties.get("APPLIANCE_RAM", 0))
90+
91+
# RAM in AppDB is in bytes
92+
min_ram = int(properties.get("APPLIANCE_RAM", 0)/1048576)
9193

9294
properties[IMAGE_STATUS_TAG] = 'ACTIVE'
9395

0 commit comments

Comments
 (0)