]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
get_replication_updates call to driver is wrong
authorJohn Griffith <john.griffith8@gmail.com>
Fri, 28 Aug 2015 15:19:34 +0000 (09:19 -0600)
committerJohn Griffith <john.griffith8@gmail.com>
Fri, 28 Aug 2015 20:27:43 +0000 (20:27 +0000)
The call to driver.get_replication_updates in manager.py
omitted the context argument from the call.

This fixes that by adding the context argument to the call.

Change-Id: I1e59e4a7e64fee8f26ac27a3eb79683d7bccdce4
Closes-Bug: #1489931

cinder/volume/manager.py

index 3f571c5fcc629460616b559be5ea1747405ddda0..66338724cc704d1fe9928374e3ee2cb010ab49dd 100644 (file)
@@ -1671,7 +1671,8 @@ class VolumeManager(manager.SchedulerDependentManager):
                     # We want to leverage some of the same update model
                     # that we have in the targets update call
 
-                    replication_updates = self.driver.get_replication_updates()
+                    replication_updates = (
+                        self.driver.get_replication_updates(context))
                     for update in replication_updates:
                         pass