Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Skip imports of AnsiblePlugin #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mkrizek
Copy link

@mkrizek mkrizek commented Sep 11, 2019

No description provided.

@@ -273,6 +273,8 @@ def rewrite_imports_in_fst(mod_fst, import_map, collection, spec):
continue # Skip imports of Base classes
if len(imp.find_all('name_as_name', value='g:*loader*')) > 0:
continue # Skip imports of ansible.plugin.loader.py
if len(imp.find_all('name_as_name', value='g:AnsiblePlugin')) > 0:
Copy link
Owner

@bcoca bcoca Sep 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a way we can pass a list to value vs creating a bunch of if statements?

would be nicer to have a 'global' that we can append to values as we find them

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked earlier and didn't find a way, but now that I am looking again, apparently there is https://redbaron.readthedocs.io/en/latest/querying.html#list-or-tuple. Let me test and update the PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants