Skip to content

Commit 5152533

Browse files
authored
Merge pull request #16 from Pansanel/mem
Mem
2 parents a96570f + 063f658 commit 5152533

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)