]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fallback to None on missing Glance image attrs
authorMike Perez <thingee@gmail.com>
Fri, 18 Apr 2014 01:46:36 +0000 (18:46 -0700)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 14:08:50 +0000 (22:08 +0800)
commit1f0f318f944f6e8012818a6483bc2898cb19e7d9
tree9f26fc4931e0b6c47e628f164ebc3e18c82cfacc
parent555e629a32fdc3c4e01c58abbec0525c420d8285
Fallback to None on missing Glance image attrs

It's possible for glance images to be missing attributes like name and
checksum. We'll just set those to None by default to avoid missing key
exceptions being raised.

Closes-Bug: #1308058
Change-Id: I85c42f8351763da201021a22f5ff0ebd62c6b2db
(cherry picked from commit 993facb3bf753d23332236dc05b397850bf99144)
cinder/image/glance.py
cinder/tests/image/test_glance.py