]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Remove redundant args for clone_image method
authorJohn Griffith <john.griffith8@gmail.com>
Thu, 18 Dec 2014 16:26:12 +0000 (09:26 -0700)
committerJohn Griffith <john.griffith8@gmail.com>
Thu, 18 Dec 2014 16:47:06 +0000 (09:47 -0700)
commitbaedb8c6c1642c0551675e311a1b3f869cecfc57
tree8318a0f1c662729b973fd74ef7dc32e83afdb19e
parent99f4664eff8afe7c38c51a846694dfb24a0867e4
Remove redundant args for clone_image method

The clone_image method takes both image_id and image_meta
as arguments.  No big deal, except the image id is included
in the image_meta; so there's really no reason to have both.

This patch removes the image_id argument and updates those
drivers that implement clone_image to extract the image ID
from the provided image_metadata.

Change-Id: Ibf3d3f7520f0e6d30081e98bdcbf1a07ebdb44ab
12 files changed:
cinder/tests/test_gpfs.py
cinder/tests/test_huaweistorac.py
cinder/tests/test_netapp_nfs.py
cinder/tests/test_rbd.py
cinder/tests/test_volume.py
cinder/volume/driver.py
cinder/volume/drivers/ibm/gpfs.py
cinder/volume/drivers/lvm.py
cinder/volume/drivers/netapp/dataontap/nfs_base.py
cinder/volume/drivers/rbd.py
cinder/volume/drivers/scality.py
cinder/volume/flows/manager/create_volume.py