-
Notifications
You must be signed in to change notification settings - Fork 23.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix collection module info quirk #68223
Conversation
fa491f3
to
9c90139
Compare
ci_complete |
9c90139
to
c1acab0
Compare
The test
The test
The test
The test
|
247c37c
to
34096a1
Compare
e0c146a
to
eea920a
Compare
The test
|
eea920a
to
9298e45
Compare
Before, when you import an identifier from a module_util with the same name as the Python module it belongs in, the CollectionModuleInfo class would think that the identifier was a Python module and return the source for the Python module when requested. This change fixes the code so that the class will throw an error in this case. The lack of error was causing an issue when constructing AnsiballZs. For instance: from ..module_utils.ismount import ismount The former code would create the file: ansible_collections/ansible/posix/plugins/module_utils/ismount/ismount.py Instead of: ansible_collections/ansible/posix/plugins/module_utils/ismount.py * The fix also implements the pkg_dir flag for the CollectionModuleInfo class. * Since the fix requires that we cache whether the Finder found the module but didn't load it, make use of that when deciding whether the module has already been found. ci_complete
…strings Convert to native string at the border. We should add docstrings and rename variables to n_* to show this more clearly. ci_complate
9298e45
to
fc45e43
Compare
* Remove meraki unit tests. * Reenable disabled tests. * Re-disable xfs_quota tests - depend on ansible/ansible#68223. * Fix FQCNs. * More FQCNs. * Fix typo.
@felixfontein Hi, I believe you tested this PR did it improve the situation for you? Was it an issue in @abadger What do you think the next steps are for this? |
@gundalow I tested this PR just for another problem (which it didn't solve). |
@gundalow nitzmahone said he Incorporated a better fix into his routing pr (@nitzmahone can you confirm?) We can probably look at the routing pr to see if the tests i added here got added there as another way to confirm whether there's a fix in there |
I see a test for this case in the routing PR so I think that it is fixed in a different way there. |
The routing PR (with test for this issue) has now been merged. felixfontein confirms that xfs_quota is no longer broken. Closing this issue. |
SUMMARY
ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION