]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add volume_glance_metadata to volume.api.get
authorJohn Griffith <john.griffith@solidfire.com>
Mon, 4 Feb 2013 23:18:29 +0000 (16:18 -0700)
committerJohn Griffith <john.griffith@solidfire.com>
Mon, 4 Feb 2013 23:26:32 +0000 (16:26 -0700)
commitf32253f7391da22b6d69a4afebda5cdd99bb40d3
treea6d1c601d3d57c6f22018ea14cd435e8800da511
parent4275a23af9950ba607d703243e3c6a1592286e93
Add volume_glance_metadata to volume.api.get

The dict(rv.iteritems()) agains the volume object from
volume.api.get does NOT set the volume_glance_metadata k/v.

This is used to show bootable in the show and list api calls,
the result was that list properly reflected the bootable status
of a volume, however show would always describe the flag as False.

So we simply check if the rv includes the glance_metadata and if
so go ahead and create the entry in the volume dict.

Fixes bug: 1115629

Change-Id: Ia0be08f3d2c85b7fe8390fca264803c96cdce7f7
cinder/volume/api.py