glance/glance
Eoghan Glynn 62c913c3ad Require container & disk formats on image create
Fixes lp 933702

For images created via the glance CLI, the container and disk formats
were previously defaulted if not explicitly set. However if created via
the python or REST APIs, these attributes were not defaulted if unset.

There is no real sensible default for these formats, so now an image
create fails with 400 "Bad Request" if the format metadata are missing.

Also we ensure unset image metadata are not reported in x-image-meta-*
headers in order to disambiguate None and empty string values.

Change-Id: I8189383f5f9adf42a8cdac7f8dc7e9327baf46da
2012-02-20 18:06:51 +00:00
..
api Return 503 if insufficient permission on filestore 2012-02-17 19:01:33 +00:00
common Require container & disk formats on image create 2012-02-20 18:06:51 +00:00
image_cache Don't fail response if caching failed 2012-02-10 13:21:17 -05:00
notifier Function uses 'msg' not 'message' 2012-02-15 18:58:45 +00:00
registry Require container & disk formats on image create 2012-02-20 18:06:51 +00:00
store Return 503 if insufficient permission on filestore 2012-02-17 19:01:33 +00:00
tests Require container & disk formats on image create 2012-02-20 18:06:51 +00:00
__init__.py load gettext in __init__ to fix '_ is not defined' 2011-11-08 10:58:25 -08:00
client.py Fixes LP Bug#861650 - Glance client deps 2011-11-30 09:41:22 -05:00
version.py Add optional revision field to version number 2012-01-11 07:25:36 +00:00