Skip to content

Commit

Permalink
Merge pull request #16 from Pansanel/mem
Browse files Browse the repository at this point in the history
Mem
  • Loading branch information
Pansanel authored Feb 16, 2018
2 parents a96570f + 063f658 commit 5152533
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloudkeeper_os/imagemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 5152533

Please sign in to comment.