]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Stop stacktracing on QuotaErrors
authorJoe Gordon <joe.gordon0@gmail.com>
Fri, 3 Oct 2014 01:18:31 +0000 (18:18 -0700)
committerJoe Gordon <joe.gordon0@gmail.com>
Wed, 12 Nov 2014 21:49:42 +0000 (13:49 -0800)
QuotaErrors are expected, no need to stacktrace for it.

Change-Id: I748848789a73798abae964040efe1a329fbf1bd9

cinder/flow_utils.py

index 7f1dbac7f5f2cf8ac3934c22f37f93b74e935fac..0d217885563f87ee9534460eed32395f17f64a41 100644 (file)
@@ -92,7 +92,8 @@ class DynamicLogListener(base_listener.ListenerBase):
                 message_dict = {'task_name': details['task_name'],
                                 'task_uuid': details['task_uuid'],
                                 'state': state}
-                if result.check(exception.InvalidInput) is not None:
+                if (result.check(exception.InvalidInput,
+                                 exception.QuotaError) is not None):
                     # Exception is an excepted case, don't stacktrace
                     message_dict['exception_str'] = result.exception_str
                     message = (_("Task '%(task_name)s' (%(task_uuid)s)"