Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Eoghan Glynn
committed
Feb 20, 2012
1 parent
f8f9f17
commit 62c913c
Showing
17 changed files
with
291 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.