]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix enable/disable_replication raise InvalidVolume
authorWalter A. Boring IV <walter.boring@hp.com>
Thu, 1 Oct 2015 22:47:44 +0000 (15:47 -0700)
committerWalter A. Boring IV <walter.boring@hp.com>
Thu, 1 Oct 2015 23:15:13 +0000 (16:15 -0700)
commit792c24bf360ca816055e6f492f67a41f1ce7e359
tree573b11e7007dc42cdb440f94f8850db36d6f915d
parent6f6e3e5beb87f0b7fde574ac23d23d760d1716e9
Fix enable/disable_replication raise InvalidVolume

In both enable_replication and disable_replication,
it tests to see the replication_state is in the correct
state.  When it's not it was raising InvalidVolume()
InvalidVolume requires a reason text message.

This patch adds the missing reason=msg when creating
the InvalidVolume exception

Change-Id: I66a3e4dc4359457e9669c5ddaa4b0529645334f9
Closes-Bug: 1501942
cinder/volume/manager.py