Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Horizon dashboard has a profiler plugin which calls profiler.init method at openstack_dashboard/contrib/developer/profiler/middleware.py line 64. This creates a profiler and picks a new base_id. The only way to remove this profiler and stop using this base_id is to call profiler._clean() method. So this patch changes _clean() to clean() so it becomes a public method. Change-Id: Idec7ee240bc7f508aeebcba374a9673652b1cc72 Related-Bug: #1777486
- Loading branch information
1 parent
4bec736
commit dba7567
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
__local_ctx = threading.local() | ||
|
||
|
||
def _clean(): | ||
def clean(): | ||
__local_ctx.profiler = None | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters