-
Notifications
You must be signed in to change notification settings - Fork 17
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
look for role/collection deps; report errors #107
Conversation
I plan on adding this to tox-lsr and github actions |
I installed the latest rhel-system-roles-#.#.#-1.el9.noarch.rpm and ran report-modules-plugins.py, then it failed as follows:
The undefined |
hmm - should not get a stack trace - looks like a bug - should work fine against a vendored collection |
Looks like there is a bug in getting filter plugins. filter plugins are not defined the way module and other plugins are defined - that is, the name of the plugin is not the name of the file (e.g. plugins/modules/foo.py defines a module named
the names of the filter plugins are the keys of |
Improve parsing of filter and test plugin files. When we get a NameError because of an undefined symbol, define that symbol with a value of `True` and try again, until the `filters` or `tests` method returns successfully. Also fixed handling for several other types of files.
21938fb
to
58817c1
Compare
@nhosoi with the latest commit I am able to run the script against the collection from the rpm with the vendored plugins:
|
for example, on the system roles collection: ``` The following local modules are used at runtime: blivet certificate_request kernel_settings mount nbde_client_clevis nbde_server_tang network_connections seboolean sefcontext selinux selinux_modules_facts selogin seport timesync_provider The following local filters are used at runtime: ipaddr ``` These include the plugins defined by the role, and the vendored plugins.
ok - please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @richm. It works against the collection including local filters now.
lgtm
No description provided.