]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Update ref used for notifications
authorJohn Griffith <john.griffith8@gmail.com>
Tue, 29 Jul 2014 15:59:33 +0000 (09:59 -0600)
committerJohn Griffith <john.griffith8@gmail.com>
Tue, 29 Jul 2014 17:00:05 +0000 (11:00 -0600)
commit5ee167c14c9978409db059054a02635de35a2e93
tree1b3d17a4d653e471a88b5106265a7cee7328c55d
parente4ad50563cc594f2648b1714039105d9bb3f4e7d
Update ref used for notifications

When we update a snapshot status in the db, we need to
use the newly updated snapshot-ref object in the following
notification method call.  Otherwise we're sending a
notifciation message with the old/outdated status
information.

NOTE: This also fixes the unit test that was written to
pass with the bug that existed in the notification.

Closes-Bug: #1349805

Change-Id: I32b86d7edd836310c6da7adffa46e915361668f0
cinder/tests/test_volume.py
cinder/volume/manager.py