Repository navigation
Change return value for salt/states/augeas.py to be True instead of N… - #37895
Conversation
…one for cases where salt is run with test=True. Fixes saltstack#37870
|
This has a failing test. However, I suspect this test may have been written incorrectly to begin with. Could you take a look please and adjust it if necessary? https://jenkins.saltstack.com/job/PR/job/salt-pr-rs-cent7-n/7181/testReport/junit/unit.states.augeas_test/AugeasTestCase/test_change_in_test_mode/ |
|
Sorry about that - first time modifying salt. I have updated the unit test to also check for True v.s. None. That should get the test working again. Zoe$ python ./tests/runtests.py -n unit.states.augeas_test -v test_change_in_test_mode (unit.states.augeas_test.AugeasTestCase) Ran 11 tests in 0.191s OK ============================ Overall Tests Report ============================
|
|
No apology necessary. Thanks, @fj40crawler ! |
What does this PR do?
Fixes return value for augeas.changes from None to True when salt is run with test=True
What issues does this PR fix or reference?
#37870
Previous Behavior
salt-call state.apply my.augeas.state test=True returns 'None' with the list of commands to be run.
New Behavior
salt-call state.apply my.augeas.state test=True returns 'True' with the list of commands to be run.
Tests written?
No. Tested with existing state file.