Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenStack
oslo
python-oslo.service
Commits
7a62271d
Commit
7a62271d
authored
Oct 13, 2021
by
Zuul
Committed by
Gerrit Code Review
Oct 13, 2021
Browse files
Merge "Fix fo() backdoor command for non-class objects"
parents
d3ee8ef0
eb191548
Changes
2
Hide whitespace changes
Inline
Side-by-side
oslo_service/eventlet_backdoor.py
View file @
7a62271d
...
...
@@ -86,7 +86,8 @@ def _detailed_dump_frames(f, thread_index):
def
_find_objects
(
t
):
return
[
o
for
o
in
gc
.
get_objects
()
if
isinstance
(
o
,
t
)]
return
[
o
for
o
in
gc
.
get_objects
()
if
hasattr
(
o
,
"__class__"
)
and
isinstance
(
o
,
t
)]
def
_capture_profile
(
fname
=
''
):
...
...
releasenotes/notes/fix-find-object-in-backdoor-487bf78c4c502594.yaml
0 → 100644
View file @
7a62271d
---
fixes
:
-
|
Fix the backdoor helper method fo() to also work when there are objects
present in the current python instance that do not have a __class__
attribute.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment