]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Clean up db.volume_create()
authorJohn Griffith <john.griffith@solidfire.com>
Mon, 17 Sep 2012 21:36:10 +0000 (15:36 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Mon, 17 Sep 2012 21:58:39 +0000 (15:58 -0600)
commit58dd2385365e7f5b79dc0c151092795d02bfe802
tree7a3425fe82a75d36abbd7ea9e44d890510fbcaa7
parent2693b405b4c0667e1cec3295472331172d641cb4
Clean up db.volume_create()

 Adding the metadata return to db.volume_create() introduced some
 messy and unnecessary repitition in the code.  This patch
 cleans that up and makes use of existing volume_get functions rather
 than duplicating the code in volume_create.

 This syncs cinder up with the patch as it's been submitted for nova
 in https://review.openstack.org/#/c/10461/

 Addresses bug #1052176

Change-Id: I17aca069fbb0240770613f176430a1b2fcf2b25a
cinder/db/sqlalchemy/api.py
cinder/tests/test_volume.py