You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 minionWhite 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
The text was updated successfully, but these errors were encountered: