]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Make size optional when creating a volume from a snap
authorDuncan Thomas <duncan.thomas@gmail.com>
Fri, 17 Aug 2012 10:15:52 +0000 (10:15 +0000)
committerDuncan Thomas <duncan.thomas@gmail.com>
Fri, 31 Aug 2012 13:51:12 +0000 (13:51 +0000)
commitb84d6237729efb9241d934e2d06d77bf9adb8471
tree9796479c70694d8f83007b515987eac220679419
parentf5f1824a4ba9a3e5fa29d955961b988168b22207
Make size optional when creating a volume from a snap

Changing the size of a volume when cloning a snapshot doesn't
make a great deal of sense *and isn't part of the ec2 api).

This patch makes the field optional, defaulting to the same
size as the snapshot (and therefore the origination volume).

Change-Id: I3fea7fe1c0415d10e549c66a242cf2a336a7204e
cinder/api/openstack/volume/volumes.py