-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
syspaths.py warning message #52352
syspaths.py warning message #52352
Conversation
… and default them to "None" This will cause variables typoed or missing to be defaulted and allow salt to execute.
…salt .py files with log related code.
Added in typo question. Added in example line to fix the issue.
I did not add in salt docs reference or URL since said doc doesn't exist yet, and reviewing other log messages showed no such references or URLs set in the messages. |
I don't get the space after comma error in pylint. later in the same file the lists don't have spaces after commas? pylint test is just bullying me... (T_T) |
@Ch3LL can you explain the error? I'm confused by it. |
you will want to make sure you point your pylint to the testing pylintrc file. For example I run: This should give you similar results as these tests. But to help point you in the right direction this is how you will need to fix this particular lint error:
notice the space after the SPM_FORMULA_PATH comma |
Cool, not sure why it failed before, but now it passes all the tests! |
2) reversed single print for loop mechanic, 3) changed print structure based off of a suggestion by @waynew Signed-off-by: Alan Cugler <alan.cugler101@gmail.com>
…alt into syspaths_warning_message
@waynew let me know if anything is still dis-satisfying for the PR. I ended up using |
@alan-cugler Looking great! Do you think it would make sense to add a test ensuring that the expected values do get set? I'm not sure if that's a test we could automate very well? |
@waynew I am still learning your guy's test suite and how to use the mock library. We can open an issue to add a test in. |
[master] Porting #52352 to master
What does this PR do?
None
What issues does this PR fix or reference?
#52230
Previous Behavior
New Behavior
_syspaths.py
fileTests written?
Commits signed with GPG?
Yes