]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
get_snapshot should populate the snapshot metadata
authorOllie Leahy <oliver.leahy@hp.com>
Wed, 24 Jul 2013 10:06:41 +0000 (10:06 +0000)
committerOllie Leahy <oliver.leahy@hp.com>
Wed, 24 Jul 2013 10:15:53 +0000 (10:15 +0000)
commit99a6f4f9e5b13cd9a3e5c90a5ff11eab9ad92642
treee1c51f0aedc25731dec8acd3a5429c5a67c92f69
parentc8355adf0c0b9a70eca0eab8f8e4e2f773654d70
get_snapshot should populate the snapshot metadata

Update the query in db api snapshot_get() to join with the table
snapshot_metadata, so that snapshot metadata is returned. This makes the
api snapshot_get() function in the same way as volume_get().

Fixes: bug #1204446
Change-Id: I37004140f6a11b96aaeb3af6c631028a44541d3a
cinder/db/sqlalchemy/api.py
cinder/tests/test_volume.py