salt.outputter.highstate: recursion for orch#46022
Conversation
6137184 to
3ed7b48
Compare
|
@mattp- Thanks for submitting this! Offhand, there's a lint error here: https://jenkins.saltstack.com/job/PR/job/salt-pr-lint-n/19299/violations/file/salt/output/highstate.py/ |
rallytime
left a comment
There was a problem hiding this comment.
Tests need to be written to make sure this change doesn't regress, too.
There was a problem hiding this comment.
We shouldn't be using the u'' syntax here. That should be using salt.utils.stringutils.to_unicode instead.
There was a problem hiding this comment.
Ah my bad, originally wrote this on a release branch pre Unicode change. Will update and add a regression test
There was a problem hiding this comment.
The u is still there. Also, there need to be spaces after commas and between operators, or else the linter will complain.
I don't think we'll need to use salt.utils.stringutils.to_unicode() here, due to unicode_literals being imported. The nested variable should contain a unicode string because the output() function returns unicode strings.
cachedout
left a comment
There was a problem hiding this comment.
Can we get tests written for this?
There was a problem hiding this comment.
The u is still there. Also, there need to be spaces after commas and between operators, or else the linter will complain.
I don't think we'll need to use salt.utils.stringutils.to_unicode() here, due to unicode_literals being imported. The nested variable should contain a unicode string because the output() function returns unicode strings.
d960c6a to
1556338
Compare
|
@rallytime / @terminalmage I've added a regression test and updated to correct the lint errors. can you please take another gander? Thanks |
terminalmage
left a comment
There was a problem hiding this comment.
There is still a single lint issue that needs to be fixed. The ones in test_error.py are unrelated and already fixed upstream, if you rebase against the head of our develop branch after fixing the lint error I pointed out below, then it should get the lint check to pass.
| 'retcode': 0 | ||
| } | ||
|
|
||
|
|
There was a problem hiding this comment.
This line needs to be removed to satisfy the linter.
There was a problem hiding this comment.
Line 186 in case the above comment is ambiguous.
1fec871 to
2928817
Compare
|
Lint issues should now be resolved |
8b4f76a to
6966347
Compare
orchestration / nested runners emitting to highstate were not rendered as highstate like a normal state apply. With this change, recurse and indent accordingly based on nested orchestrations.
6966347 to
98cfa1f
Compare
What does this PR do?
orchestration / nested runners emitting to highstate were not rendered as
highstate like a normal state apply. With this change, recurse and indent
accordingly based on nested orchestrations.
Previous Behavior
nested orch / states were just rendered as raw data.
New Behavior
orch/state output is now rendered as nested inner highstates:
Tests written?
No
Commits signed with GPG?
No
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.