]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Remove the unnecassary volume_api.get(context, volume_id)
authorVincent Hou <sbhou@cn.ibm.com>
Mon, 31 Aug 2015 09:23:48 +0000 (17:23 +0800)
committerVincent Hou <sbhou@cn.ibm.com>
Tue, 1 Sep 2015 13:24:07 +0000 (21:24 +0800)
commit1d1695838d4291e92043a31893d8cb103a26f627
tree7b095d473e4fe3c0e671107ffaa397e24188c889
parent77d6bf6550d0b5a94bec7f88024a4105b33502f8
Remove the unnecassary volume_api.get(context, volume_id)

In the method delete from volume_image_metadata, volume_api.get()
may be called twice. This first time is to get the metadata, and
the second is to get the volume. We can get both of them at the
same time.

Change-Id: I0633c16db21e254ec43bad472748cbc0b7796a24
Closes-Bug: #1489342
cinder/api/contrib/volume_image_metadata.py