Skip to content

Ensure _get_function_full_qual_name() can get always get the module name#62

Merged
trangevi merged 2 commits intoAzure:masterfrom
ysmu:master
Apr 13, 2022
Merged

Ensure _get_function_full_qual_name() can get always get the module name#62
trangevi merged 2 commits intoAzure:masterfrom
ysmu:master

Conversation

@ysmu
Copy link
Copy Markdown
Contributor

@ysmu ysmu commented Apr 13, 2022

_get_function_full_qual_name() cannot correctly detect the module name when if module is not available in sys.modules due to how inspect.getmodule() is implemented. Since we only need the module name, updating the function to read from __module__.

@ysmu ysmu requested a review from a team as a code owner April 13, 2022 21:47
trangevi
trangevi previously approved these changes Apr 13, 2022
@trangevi trangevi merged commit ce251d2 into Azure:master Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants