Merge "Fix images minimum ram and disk default values"

This commit is contained in:
Zuul 2018-12-21 14:22:23 +00:00 committed by Gerrit Code Review
commit d3f9ca8373
1 changed files with 2 additions and 2 deletions

View File

@ -457,8 +457,8 @@ def create_image_metadata(data):
meta = {'protected': data.get('protected', False),
'disk_format': data.get('disk_format', 'raw'),
'container_format': data.get('container_format', 'bare'),
'min_disk': data.get('min_disk', 0),
'min_ram': data.get('min_ram', 0),
'min_disk': data.get('min_disk') or 0,
'min_ram': data.get('min_ram') or 0,
'name': data.get('name', '')}
# Glance does not really do anything with container_format at the