Skip to content
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

Black list and White list for python modules required to be in try/except block #1

Closed
s0undt3ch opened this issue Jan 31, 2015 · 0 comments
Assignees

Comments

@s0undt3ch
Copy link
Contributor

It would be very useful to have a lint plugin to manage a black list and a white list of python modules that must be in a try/except block.

Black list example:
The pwd modules doesn't exist on Windows and so should be in a try/except block so it doesn't blow up the windows minion

White list example:
@s0undt3ch suggested we make all non-stdlib and non salt hard dep modules be required to be in a try/except block as well.
If we wanted to allow a module that's not stdlib or non salt hard dep be imported outside a try/except block, then we'd add it to the white list.

@s0undt3ch or @thatch45 do you have any thoughts or suggestions for this?

X-Ref: vmware-archive/salt-testing#27

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

No branches or pull requests

1 participant