"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "openstack_dashboard/api/glance.py" between
horizon-14.0.2.tar.gz and horizon-14.0.3.tar.gz

About: OpenStack Horizon (Optional Service: Dashboard) provides a web-based self-service portal to interact with underlying OpenStack services, such as launching an instance, assigning IP addresses and configuring access controls.
The "Rocky" series (maintained release).

glance.py  (horizon-14.0.2):glance.py  (horizon-14.0.3)
skipping to change at line 420 skipping to change at line 420
def token_id(self): def token_id(self):
return self._token_id return self._token_id
def create_image_metadata(data): def create_image_metadata(data):
"""Generate metadata dict for a new image from a given form data.""" """Generate metadata dict for a new image from a given form data."""
# Default metadata # Default metadata
meta = {'protected': data.get('protected', False), meta = {'protected': data.get('protected', False),
'disk_format': data.get('disk_format', 'raw'), 'disk_format': data.get('disk_format', 'raw'),
'container_format': data.get('container_format', 'bare'), 'container_format': data.get('container_format', 'bare'),
'min_disk': data.get('min_disk', 0), 'min_disk': data.get('min_disk') or 0,
'min_ram': data.get('min_ram', 0), 'min_ram': data.get('min_ram') or 0,
'name': data.get('name', '')} 'name': data.get('name', '')}
# Glance does not really do anything with container_format at the # Glance does not really do anything with container_format at the
# moment. It requires it is set to the same disk_format for the three # moment. It requires it is set to the same disk_format for the three
# Amazon image types, otherwise it just treats them as 'bare.' As such # Amazon image types, otherwise it just treats them as 'bare.' As such
# we will just set that to be that here instead of bothering the user # we will just set that to be that here instead of bothering the user
# with asking them for information we can already determine. # with asking them for information we can already determine.
if meta['disk_format'] in ('ami', 'aki', 'ari',): if meta['disk_format'] in ('ami', 'aki', 'ari',):
meta['container_format'] = meta['disk_format'] meta['container_format'] = meta['disk_format']
elif meta['disk_format'] == 'docker': elif meta['disk_format'] == 'docker':
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)