The profiler serializer, which is used if the osprofiler is installed,
was initialized with None and therefore did not serialize the context.
As a result, the context did not reach the api handler layer and was
ignored.
The solution: if the serializer is None, return the un-serialized
context as is.
Reviewed: https:/ /review. openstack. org/494077 /git.openstack. org/cgit/ openstack/ vitrage/ commit/ ?id=b65e9eb13f3 46b1c31e798adf1 9138cff190f0e5
Committed: https:/
Submitter: Jenkins
Branch: stable/pike
commit b65e9eb13f346b1 c31e798adf19138 cff190f0e5
Author: Ifat Afek <email address hidden>
Date: Tue Aug 15 15:28:02 2017 +0000
Fix a bug in the profiler serializer.
The profiler serializer, which is used if the osprofiler is installed,
was initialized with None and therefore did not serialize the context.
As a result, the context did not reach the api handler layer and was
ignored.
The solution: if the serializer is None, return the un-serialized
context as is.
Change-Id: I6f9b3c3735b102 29e5bfd61339632 730d2d812d1
Closes-Bug: #1707589