]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Use a *args pass-in instead of a list one
authorJoshua Harlow <harlowja@yahoo-inc.com>
Tue, 14 Jan 2014 18:57:32 +0000 (10:57 -0800)
committerJoshua Harlow <harlowja@yahoo-inc.com>
Thu, 16 Jan 2014 01:42:49 +0000 (17:42 -0800)
Change-Id: Ieef972f413dcf444d26c15a02d1993acf7cbb079

cinder/volume/flows/create_volume/__init__.py

index bb38577630b8866a63a3c2d6409d16b1aa51f6e9..092c8bf07ee6ff38b7f3626e1199846b1067f835 100644 (file)
@@ -927,7 +927,7 @@ class OnFailureRescheduleTask(base.CinderTask):
     def revert(self, context, result, flow_failures, **kwargs):
         # Check if we have a cause which can tell us not to reschedule.
         for failure in flow_failures.values():
-            if failure.check(self.no_reschedule_types):
+            if failure.check(*self.no_reschedule_types):
                 return
 
         volume_id = kwargs['volume_id']