]> 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)
committerMike Perez <thingee@gmail.com>
Fri, 18 Apr 2014 01:53:20 +0000 (18:53 -0700)
commit993facb3bf753d23332236dc05b397850bf99144
treec85165d50c8d88daeb379f08138cc81597ff2078
parentd943bafbb8908ba9f85be8e2a0e48a80d27ae48a
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
cinder/image/glance.py
cinder/tests/image/test_glance.py