Skip to content

Instantly share code, notes, and snippets.

@kragniz
Created August 26, 2014 08:18
Show Gist options
  • Save kragniz/cf2637dafd05e685bbee to your computer and use it in GitHub Desktop.
Save kragniz/cf2637dafd05e685bbee to your computer and use it in GitHub Desktop.
glance/api/v1/images.py
if (image_size_store and
image_size_store != image_size_meta):
msg = (_LW("Provided image size must match the stored"
" image size. (provided size: %(ps)d, "
"stored size: %(ss)d)") % {
"ps": image_size_meta,
"ss": image_size_store})
LOG.warn(msg)
raise HTTPConflict(explanation=msg,
request=req,
content_type="text/plain")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment